Added WebSockets support, changed server side file handling.