refactored server.coffee to create a class variable out of the running server instance
refactored global before and after tests to make it work with new server.coffee