More changes to user and session handling. Fixes somes issues with client reconnect and connecting other instance.