Turn left panel into dockwidgets, save window state before quit, fix #6