Modified to use mongoid, added a homepage