Make subscriptions wait until connected to the websocket.

This closes #13 anc closes #14.