Fix race condition in WebSocket authentication (#1860)
Fix race condition in WebSocket authentication (#1860)

If the /api/now response arrived before the WebSocket connection was
established, we would not send the socket authentication token. With
this change we remember the authentication token until the connection is
ready.

Closes #1130
u-wave/web,u-wave/web