Crosstab persistent session management

App now detects if it's open in several tabs, choose a "main" window for
work as the p2p node(not yet implemented), automatic main window
substitution