Upgrading mongoid version dependecy to "~> 3.1.0"

Most of application uses mongoid "~> 3.1.0".
It's probably time to upgrade the main repo.

Thanks.