Single threaded web server with web sockets support