Auth flow server tests

Change server.coffee exports from new WebServer.server to new WebServer. That way objects in the server can be stubbed