Activerecord 4.2 upgrade

Work on making this gem compatible with activerecord 4.2. Worked on this a while ago but I still would like to drop mongoid and datamapper support and release it as a new gem.