Get CookieStore and TokenStore from configuration, falling back to
regular state.