Fixes for SWORD compliance.

refs #5837

Fixes in transfer REST API for SWORD compliance. Changed "Content-Type" head in
some responses and added logic so finalizing a deposit returns a deposit receipt.
Added missing template.