Upgrade to Mongoid 3

This is quite a substantial change, so we should get plenty of eyes on this before it's merged.

We will also need to update the mongoid.yml in alphagov-deployment before merging this.