Fixed gridfs production mode
Fixed mongoid login to gridfs on development mode