util/packer: Refactor scripts and use single JSON template

Signed-off-by: Lewis Marshall <lewis@lmars.net>