WIP on making chatclient restartable after connection loss.

Also cleaned up naming of log_out() to disconnect() to no longer conflict with user session management, which might one day want to do more than just cut the line.