Complete SSL support by using a HTTPSConnection when needed.

My previous patch for SSL support was incomplete; this patch fully implements HTTPS connections and works with a pusher app configured in SSL-only mode.