support for mongoid orm

Draft of code that add support for mongoid orm