save tabs

* tabs are saved when app is quit and are restored on launch
* cleaned old code