Mongoid 4 Support

Contains all the stuff from #44, with a handful of extra fixes to specs.