Renamed app.js to server.js, added openshift env variables, use new mongodb api
Added ip and port for server
Use sendgrid for mails in production mode
Fixed usage of sendgrid