[vagrant] Don't generate rdoc/ri in provision.sh

When provisioning the vagrant box the script was failing to generate
rdoc for pry [1]. This simply skips generating those docs to avoid the
error.

[1] https://github.com/mysociety/popit/issues/280#issuecomment-31929678
Wait for server to start before running tests

On some setups (notably in a vagrant box) the first test sometimes fails
because the server takes longer than 5 seconds to start. [1]

This change uses netcat (nc(1)) to wait for the server to open port 3100
before it continues running the tests.

Added an echo statement to make it more obvious what's going on if the
test server isn't running for some reason, thanks @mhl for the
suggestion!

[1] https://github.com/mysociety/popit/issues/280#issuecomment-31930573
[vagrant] Install chromedriver 2.8 in provision.sh

Running the tests was generating some errors which related to the
version of chromedriver we were using. [1]

This downloads the latest version of chromedriver, for some reason the
unzipped file had its permissions set to 700, so the chmod is necessary
to make the binary usable to regular users.

[1] https://github.com/mysociety/popit/issues/280#issuecomment-31931073
[vagrant] Make sure graphicsmagick is installed

Without graphicsmagick installed there are errors when running the
tests [1].

Added graphicsmagick to the list of packages installed by apt-get.

[1] https://github.com/mysociety/popit/issues/280#issuecomment-31962704
[vagrant] Tidy up Vagrantfile

Various fixes to ensure the example Vagrantfile works out of the box as
described by the documentation.

- Re-enable the provision.sh script (removed in
  4da43939f46671192ecaba525e0715ea3314c464, presumably by accident
  during the upgrade)
- Make sure code is available at /vagrant/popit
- Use vagrant's default network settings
- Don't use NFS and remove related code
[docs] Be more explicit about where the Vagrantfile should go

If the Vagrantfile isn't placed in the correct directory then the tests
will fail because they try to create a directory at `/popit_logs`, which
they won't have permission for.
Merge pull request #281 from mysociety/vagrant-provisioning-fixes

Vagrant provisioning fixes
Add elasticsearch to config/packages

[ci skip]
Update npm-shrinkwrap.json

Switched to using popit-api from the npm registry, this makes it easier
to tell which version is currently installed, and also removes the git
dependency when deploying popit.
Add bin/reindex command for updating elasticsearch

This uses popit-api's reIndex command to re-index each instance into
elasticsearch.
Add elasticsearch to .travis.yml services
Add search API documentation

I've tried to add a few example of how the API can be used, potentially
this might need expanding in the future if it becomes apparent there are
things people are doing often with the API, but this seems like a good
starting point.
Add elasticsearch install information to docs

Document installing elasticsearch on the platforms we support. Update
the vagrant provision.sh script to install elasticsearch when vagrant is
provisioned.
Merge pull request #284 from mysociety/elasticsearch

Elasticsearch
rebuild npm-shrinkwrap.json
deploy to production - version bump to 0.0.18
Merge branch 'master' into production