Added support for different grant_types: authorization_code (the default),
refresh_token, password, client_credentials.