Add scripts stolen from random packer template for ubuntu 12.04.

And update template.json accordingly.