Save open tab
Merge branch 'master' into sort
Added application sort, minor changes

Closes #1031
Merge pull request #1187 from jpeg729/sort

Save tab state