Websocket handshake: timeout after 5 sec

Helps clean up connections by incompatible clients that expect the
server to talk first
Send websocket key in unit tests