s3-rpc_client: Move client pipe functions to own header.