Lower dependency on rest-client.

Necessary so that this and the current gds-api-adapters can be used at
the same time.