Send originator of refund as an option to the gateway

Then the gateway can make use/log/etc that information.
In particular, the store credits extension can use this to link the credits generated & refunded to the originating object (a refund) for auditing, etc.