Added docs for subscription methods in client.
Move subscription code to client/subscribe.js.