simplify session management handling
TODO test behaviour under KDE, also store documents and open document per window (sharing code with named sessions support)