Removed special credential caching code
Added support for automatically logging out user on session expire
Fixed some errors in the session handling logic
Merge branch 'safety-tips' into development