server class and ConnectionHandler to handle http requests