OPENAM-4467 CR-4988 Modify HOTP module to respond with 500 Internal Server Errors rather than JSON "header" messages when internal errors occur.

git-svn-id: https://svn.forgerock.org/openam/trunk@11207 0f4defcf-c51a-4c67-9f44-6fb5eba73c5d
AME-5132 (CR-4993): Remove non-generic functionality from the commons module


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