Refactoring the SessionQueryManager for better dependency injection.

git-svn-id: https://svn.forgerock.org/openam@4099 0f4defcf-c51a-4c67-9f44-6fb5eba73c5d
AME-543: Added the ability to specify an initial cache, that is different from the maximum cache size. This results in better memory management.

git-svn-id: https://svn.forgerock.org/openam@4100 0f4defcf-c51a-4c67-9f44-6fb5eba73c5d
Updating SessionResource to be more mockable and created a unit test for it.

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