Support refund receipt emails.

Added refund_receipt_sent property.
Updated the text of the email to use the refunded amount.
Moved logic for determining whether or not to send an email to the send_receipt function rather than passing it along.
This looks like a bug/typo in the addition of ` %}` here.