Connection: Refactored session restore.

- Insecure save if-defs moved inside {save,get}SessionData().
- Now we save data on disconnect.
Few renames in text channel.
Connection: Messaging turned on.