Extract setup script from Vagrant file

For reusability.