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
Bump mongoid to beta1
Fix mongoid4 scopes
Fix json api to only include queried fields