== Session

== Session JSON structure
- windows: list of windows

=== Window
- subwindows: list of subwindows

=== Subwindow
- profile: profile ID
- tabs: list of views
- current: current tab index

=== View
- profile: profile ID
- history: view history

Storing history: compress, toBase64 (to make printable), toQString (to store in json)
Restoring history: toLatin1 (turn into bytearray), fromBase64, uncompress
