Use cookie to get persistent connection

Fixes #15.

Google uses a cookie called "S" to implement persistence through their
load balancer. This cookie is set when creating a session or
long-polling request. By sending this cookie with future requests, we
can keep a persistent session, even when opening new connections.