Added database for properties.
On showing main window, the current terminal gets focus as expected.
Scrollback lines can be changed from properties.
Added properties window to change various settings of the application.
Various focus in/out fixes.