Refactored HttpServer.cs, WebSocketServer.cs