Refactor #10161 Remember last tab in access permissions pane

http://tracker.modx.com/issues/10161