Fixed URIs containing double slashes (eg. //)
Added a ClientCredentials grant to get an access token as application