util/packer: Refactor scripts and use single JSON template

This is so `packer` can build both Vagrant and EC2 images in parallel.