Added support for Amazon Cognito.

Includes support for both Amazon Cognito Sync and Amazon Cognito Identity.