Cache Cognito ID on a per-identity-pool basis.

Also adds `CognitoIdentityCredentials.clearCachedId()` to manually clear cache for a given IdentityPoolId.