[webapi] Add handlers for websocket server

- Integrate handlers from w3c tests, these files are needed by websocket server