Use global 'server' variable in test suite, stop server intervals in 'afterEach'
Merge pull request #5 from rmehner/refactor_tests

Use global 'server' variable in test suite, stop server intervals in 'afterEach'