Add AMD support to keycloak javascript adapter

To be able to use Keycloak with AMD module loaders such as RequireJS it requires a define statement.  This pull request adds optional support for AMD modules while maintaining current functionality.