Cleaned code and created appropriate classes in HttpServer.