unit tests clean up after themselves
add Makefile and `test` target for running tests

changed hooks.initServer callback to include http.Server enabling the
user to close the server.
added mocha as a devDependency