Added an HttpServer factory to enable integration testing.