Separated out script fetching logic

Created a file for fetching a metadata script
Removed dead code and made style consistency
Merge branch 'master' of https://github.com/illfelder/compute-image-packages