Extract enter and exit focus mode functions.
Replace hard coded string with an auto variable.
Add mksession options and tab handling.
Add temp file for sessions. Add debugging helpers.

A temp file is now used for session saving.
Several minor changes allowing the plugin to be reloaded at
will to add debugging and development.
Minor variable scope refactoring.