No mongo

Some refactoring of Router per jslint/jshint errors. Also, check in place to allow users to run without mongodb.