Added handleRequest basic server code