make test script easier to invoke
Add logging.
Separate route definitions from server.