REST api: made sure that the REST headers are copied over from REST requests to the corresponding TransportRequest(s)

Introduced the use of a FilterClient in all of the REST actions, which delegates all of the operations to the internal Client, but makes sure that the headers are properly copied from REST requests to TransportRequest(s) when it comes to executing them.

Closes #6513