Improve support for DPM
DPM will happily issue a macaroon but not actually honor it for COPY requests - it wants a GSI delegation. Accordingly, this patch will always make both authorization methods available.
Additionally, DPM will sometimes create a zero-length file even if the PULL mode copy fails. This patch will delete the destination file in between transfer attempts.