CR-4773 - AME-4851 and AME-4901 - Using realms in policyEditor

git-svn-id: https://svn.forgerock.org/openam/trunk@10932 0f4defcf-c51a-4c67-9f44-6fb5eba73c5d
OPENAM-4470, CR-4756 - Logout in XUI shouldn't call authenticate twice when user logs out

git-svn-id: https://svn.forgerock.org/openam/trunk@10933 0f4defcf-c51a-4c67-9f44-6fb5eba73c5d