Fix a harmless console error.
Emit connection event after setting connected.

This is important because in the event handler we execute potentially the whole
application and if anything uses the standard

    if (connected) ... else on('connected', ...)

logic, it will never trigger if we don't set connected to true first.
Realtime orderbook. Fixes #145.