Moved everything that doesn't need the server running into unit tests.