Fix a lot of the sha256 and md5 stuff to be more DRY and extendible, and on more things (specifically, the tgz files too) Upstream-commit: 2678af4ea8576816c5635f9c8e0d927f8faf4de1 Component: engine