Migration to API client resource gateway

The resource gateway functionality has been updated to use a API client instead of a Web client.
For web clients the Token validation functionality is deprecated, but still supported. Instead, an API client with the Token introspection scope should be used. Configuration is described in configuring a resource gateway as API client