Fix compatibility issue between Mongoid and Rails 4 sessions
Refactor homepage