add mongoid support

Hi there,

this PR adds support for the upcoming Mongoid 3.1. The changes look more substantial than they are, most of it is really just namespacing.

I'd love to hear your thoughts and make any changes you might like to have. Once 3.1 is released, we can add it as an development dependency.

Cheers, Frank