backport of output remote writing to 53X
implemented output remote writing at CERN
Merge branch 'CMG_PAT_V5_18_from-CMSSW_5_3_22-CERNtoPSI_remoteCopy' into CMG_PAT_V5_18_from-CMSSW_5_3_22