Fix issue related to moving pages to/from trash

Hide access management icons when page is in trash and show them when
page is moved from trash. Also namespaced config variables and moved
more data there.