fix bug in file deletion in CERN stageout plugin

The last commit introduced a bug in the CERN stageout plugin that
made file deletions fail. Fixed that and also restructured the
DeleteMgr class to not use and exception handler as a flow
control mechanism. Also added a printout so some possible
error messages aren't supressed anymore.
Include task type priority in LSF jobs

Specify job priority according to task type priority, this allows
LSF to do a better scheduling of the jobs.
Remove the check for the local wmc-dist-patch script as it is not shipped with the project source code. It gets included only during RPM build time.
Fix ACDC for production

Improve the EventBased splitting algorithm to support ACDC for production
workflows (MonteCarlo and LHEStepZero only). It implements a limited
ACDC where the jobs will be reproduced exactly as the last time. For recovery
of statistics it is suggested to use the statistics extension feature instead.

Fixes #4399
Fix CMSSW diagnostics of segfaults

When a SEGFAULT occurs in cmsRun, the process exits with a 134
error code and leaves an empty FrameworkJobReport behind,
the same case as when the cmsRun process receives a SIGKILL or SIGTERM.
The empty FWJR caused the diagnostics handler to crash and therefore
the job didn't do the logArchive step or returned the report pickle,
this patch fixes that and extends the unti tests for the CMSSW executor
with diagnostics.

Fixes #4134
Improve site states functionality

The possible site state list has changed, the Finalizing state doesn't exist anymore.
There is a new state labeled 'Aborted'.

Normal state functionality has no changes.
Draining state doesn't pull work for existing workflows anymore into the local queue.
Down state funcionality has no changes

Aborted state:

This new state indicates that a site is in error state and won't be recovering soon,
the best approach then is to kill any job at the site and fail any jobs that can only
run there since it is not efficient to wait until the site comes back or the input
for these jobs is lost at the site.

- If a site is in Aborted state, the JobSubmitter will not use it for submission.
  Moreover if a job can only run at an Aborted site then this job will go into
  submitfailed state with errorCode 61102.
- When a site is changed to Aborted state, all the jobs currently assigned to that site
  in the batch system will be killed, the error code for this is 61301. These jobs
  will follow usual WMAgent retry mechanics which means cooloff/resubmssion. Note
  that when resubmitted they will fail if they can't run anywhere else as stated above.
- For WorkQueue purposes an Aborted sites behaves as a Down site.

Additionally to support this functionality, there are changes in the ErrorHandler to improve
the smart error handling, now there are certain not-configurable errorCodes which cause
immediate exhaustion of the jobs. 61301 is the only one as of now and also if a report
has no time information it will now check the exit codes before deciding the fate of the job.
The ErrorHandler now reads FWJRs by default and has a default maxFailTime of 32h.

The error codes are now contained in WMExceptions.py, just a few of them now. But more
will be added later to keep them documented.

Finally, the JobSubmitter now resets the cache when a site changes state, this is to
ensure that the jobs are assigned correctly according to site availability at all times.
Although it can make the JobSubmitter slower on agents with a large number
of created jobs, however site state changes are not frequent so this is tolerable.

Fixes #4408
Fix prioritization of tasks

The tasks priorities in batch level were being taken from a task
value that was not set for all tasks and also was static to
5 for Merge/Cleanup/Harvest and 0 to Processing.

ResourceControl allows dynamic priorities per site and task type,
this patches changes the submitter to use those instead and
remove the signature of WMTask.taskPriority since it is not
needed anymore.

Fixes #4417
Check for run/lumi info in CMSSW outputs

All outputs from the CMSSW step should have run/lumi information
from the cmsRun process. Verify that and if not present
fail the job.

Fixes #4416
update campaign when acdc inherits
Squashed commit of the following:

commit 1fb0e573580a59e8f3398810027102b030349668
Author: Seangchan Ryu <sryu@fnal.gov>
Date:   Tue Feb 26 14:05:33 2013 -0600

    reformat request summary

commit a9e58d0f97783086d93efa381c9239c7889aa32c
Merge: f334328 9e736eb
Author: Seangchan Ryu <sryu@fnal.gov>
Date:   Tue Feb 26 11:54:37 2013 -0600

    Merge branch 'update_using_post' into vocms236_3

    Conflicts:
    	src/python/WMCore/Services/WMStats/WMStatsWriter.py

commit f3343288a3c28d2a222faa68065fbdc2fbc4831e
Merge: 5a45e53 da6473f
Author: Seangchan Ryu <sryu@fnal.gov>
Date:   Tue Feb 26 11:51:17 2013 -0600

    Merge branch 'logcollect_assoc' into vocms236_3

commit da6473f483565015c18242cd75221d34943aa1db
Author: Seangchan Ryu <sryu@fnal.gov>
Date:   Thu Feb 21 15:54:18 2013 -0600

    add logarchive lfn to wmstats job summary

commit 9e736ebb294df55c93b7b5bc867cc7222d2f80d5
Author: Seangchan Ryu <sryu@fnal.gov>
Date:   Mon Feb 18 14:09:29 2013 -0600

    update agent info using request body to prevent uri size limit
Merge pull request #4448 from ticoann/reqmgr_march_fix

update campaign in wmstats when acdc inherits
Merge pull request #4442 from ticoann/deploy_march_1

for march deploy (ops urgent request)
0.9.46

Signed-off-by: Stephen Foulkes <sfoulkes@fnal.gov>
Merge pull request #4447 from dballesteros7/Pass-Priority-LSF

Include task type priority in LSF jobs
Merge pull request #4412 from hufnagel/improvedeleteerror

fix bug in file deletion in CERN stageout plugin
Merge pull request #4445 from dballesteros7/segfaultReport

Fix CMSSW diagnostics of segfaults
Merge pull request #4444 from dballesteros7/WorkQueue-states

Work queue states
Merge pull request #4452 from dballesteros7/ACDC-For-Production

Fix ACDC for production
Merge pull request #4446 from geneguvo/master

Remove the check for the local wmc-dist-patch script.
handle acdc campaign when campaign is passed in the workload summary
handle object for expand format