Vagrant provisioning fixes

Fixes for the issues documented in https://github.com/mysociety/popit/issues/280. This also ensures that the vagrant install instructions in the docs work correctly.

Closes #280