Add AWS.CognitoIdentity and AWS.CognitoSync to default browser build
Add AWS.CognitoIdentityCredentials credential provider.
Fix test relying on window object