Fix local transfer
Retry policy in TW
Merge pull request #4347 from juztas/fixes

Automatic retries on submission failure and Local stageout fails at sites that use srmcp. Fixes #4234 #4337
use always update_after in couch queries
Merge pull request #4348 from juztas/stale_after

use always update_after in couch queries