Added polyfill for .bind().
Does not send unsubscribe message if there still are listeners. Also resubscribes to channels when pusher socket reconnects.
Responds to online/offline events to give faster reconnections and avoid unnecessary heartbeats. Better trigger of events for reconnections.