BUG Prevent session-interface mismatch.

Disables transparent subsite switch on AJAX requests.

Makes sure the subsite is appropriately set up when opening up the CMS
with a link to subsited object. Also adds options to flexibly
configure this depending if the object is attached to main site/any
site.