Code refactoring. Added HttpServer.