Tab state overrides

More versatile state setting on tabs (on HTML5 history data, by CSS class), in addition to the existing window.sessionStorage mechanism. Required for the "view children as list" context menu action in cms.