Implement web socket transport protocol.

This version uses web socket like the polling protocol. Responses are sent upon requests only.