fixes logout on internet reconnect and various errors
removes pubnub unsubscribe
add better logging
spacing changes