Update gems to rails 4 compatible
Changing some rails 4 config flags
Moped::BSON -> BSON
Update remaning models/controller/tests for rails 4
Remove IM
Bump mongoid
Fix mongoid4 scopes
Bump mongoid and rails
Work around mongoid empty in query
Work around Bson object_id json
fix tests
Fix test on return json for problems api
Fix boolean type on app test
Fix http referer header test
Reload name as updated
Merge pull request #768 from errbit/rails4

Rails 4