Listen for online/offline events from browser

If the browser goes offline, disconnect Faye. There's no point in having Faye attempt to reconnect if the local network is unavailable. When the connection does come back, reinitialize Faye.