util/packer: Refactor scripts and use single JSON template

This is so `packer` can build both Vagrant and EC2 images in parallel.
We only need to install Go+Ruby in the Vagrant variant.