Break build preparation out from the Vagrantfile

As we will not always use vagrant for building images, break the
preparation bits into scripts per distro.