Refactored SimpleServer class. Before it did too many things.