Server integration tests

Splits app.coffee into two separate modules, one to create and start app instances the other to be called from the command-line to start the server. Included is an example test which makes requests against a server running on port 3001.