get rid of extraneous mocha test when piping to exit
move routes and config to lib