Add mongoid 4 support

Adds mongoid 4 support. We're green but further testing might be needed.