Add preliminary websocket support
Fixed websocket stuff