Replace activerecord with mongoid
Serialize mongoid objects as json plainly
Fix serialization under mongoid
Add mongoid as a system dependecy