Update gems to rails 4 compatible
Changing some rails 4 config flags
Moped::BSON -> BSON
Update remaning models/controller/tests for rails 4