Open socket after session, not delay

It makes a lot more sense to start the websocket connection as soon as
the session is loaded, rather than using an arbitrary delay time of
five seconds.
Reset the websocket after auth changes

Fix #1286
Merge pull request #1287 from hypothesis/websocket-tweaks

WebSocket tweaks