Isolated user/identity state to client library.
Cleaned up respond ns
Isolating the session/state management