AccountManager code cleaned up for caching.
SavedRequestAwareAuthenticationSuccessHanderl cleaned up for caching.