Added compatibility with Mongoid 4

* Mongoid 3 & 4 compatible
* Compatible with Ruby 1.9.3+ (up to 2.2-dev)
* Needs `MONGOID_VERSION` set for development (3 or 4)
* Modified travis configuration to run tests on both rubies and mongoid versions