fix sync issues between channelJoined and serverConnected events.  

If those events are fired then the helper functions serverIsConnected and channelIsJoined should return the proper state.  Right now the Objective C code updates the state AFTER the events are fired... so if you have javascript that received an event then ASKS for the state, the state information will be in conflict with the event that was just received.