PAM fix and user state related

consolidation of local user state and user state
bounce sub connection on user state change
PresenceHeartbeatInterval default value