tweak main back to express standards, move test.coffee to test/routes/main.coffee (automation)