Core: removed obsolete double hiding.
Core: remove destroyed dock managers from the map.
Core: support window-per-tabclass mode.
Core: set window role according to tabclass.