refactor ErrorHandler code

The ErrorHandler takes care of job state transitions from ***failed
to either ***cooloff (picked up by RetryHandler) or exhausted (picked
up by JobArchiver). Introduce an intermediate state retrydone, to be
entered before a job reaches eshausted. This allows smarter retry
mechanisms that can decide for themself when to stop retrying.

For current retry mechanisms this is completely transparent and
stays inside the ErrorHandler, no changes are needed.

Also change the paused job kill script to switch a job to retrydone
instead of killed, this ensures that input files will be failed
and are addded to the ACDC workflow.
Fixes for DBS3 duplicate insertions

1. Update DBS3 error message catch for duplicate insertions
2. Implement a check on Proxy Errors where the uploaded will check in the next polling cycle
   if the blocks were really inserted or not, the polling cycle delay should suffice
   for the block to appear in DBS3 if they were really inserted which is usually
   the case with DBS3 Proxy errors. If they are found as injected then mark them in DBS3Buffer.

Fixes #4673
0.9.78

Signed-off-by: Zdenek Maxa <zdenek.maxa@cern.ch>
Fix query outdated in Oracle
Workload validation refactoring

Implement a new way of defining and validitng the request arguments
in the WMSpec objects, reorganize them to make it simpler
and clearer. It simplifies some parts of the ReqMgr1 when
creating requests and reduces the meddling with request parameters.

Basically what a requestor gives can be passed to the specs
and these will take care of parsing and validation procedures.

Major changes are:

- LHEStepZero is removed and contained in MonteCarlo
- Splitting arguments in creation have their names simplified
- EnableDQMHarvest becomes EnableHarvesting and needs a True or False value

Fixes #4224
Merge pull request #4641 from hufnagel/refactor-errorhandler

refactor ErrorHandler code
Merge pull request #4705 from dballesteros7/workload-params

Workload validation refactoring
Merge pull request #4709 from dballesteros7/FixDBS

Fixes for DBS3 duplicate insertions
Merge pull request #4710 from dballesteros7/jobAccountant-Bugfix

Fix query outdated in Oracle