Mongoid

Switch the ODM to Mongoid and many other fixes and UI improvements