Clean gemfile
Update mongoid config
Add thin support
Cleanup routes & update device configuration