Echo server example updated so it complies with the new callbacks from the webserver