OPENAM-4771, CR-5159 - XUI Logout not destroying session

git-svn-id: https://svn.forgerock.org/openam/trunk@11345 0f4defcf-c51a-4c67-9f44-6fb5eba73c5d
OPENAM-4576 CR-5144 - update applicationResource to return appropriate error messages

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