Reply with the correct rid, and operation type

A response should have the same rid as the request.
A successful response should have the same type as the request.
An error response should have the Op.Error type.

Signed-off-by: David Scott <dave.scott@citrix.com>