Use environment variable for MongoDB url and move config to separate file

Also added config.js to jshint in the Gruntfile since it failed the
first time.