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.
fix bug in stageout exception handler
Squashed commit of the following:

commit b7a926efa7666a38ca6c5bcdd5d820ca189dc4e2
Author: Seangchan Ryu <sryu@fnal.gov>
Date:   Wed Feb 20 13:17:02 2013 -0600

    GUI change

commit a3c13ec92c911b214c4132ee53b13295747852a7
Author: Seangchan Ryu <sryu@fnal.gov>
Date:   Mon Feb 18 10:53:56 2013 -0600

    march deploy work in progress

commit 6c7cfa0f08e02e5c50bcc401a8d5d017b3457306
Author: Seangchan Ryu <sryu@fnal.gov>
Date:   Tue Feb 12 10:27:27 2013 -0600

    change code to datatable library 1.9.4 and jquery and jquery ui version to upto date

commit bca64eda8395b565a28be09e8aecfb006d1b07fa
Merge: 3777e28 df683cf
Author: Seangchan Ryu <sryu@fnal.gov>
Date:   Mon Feb 11 15:25:34 2013 -0600

    Merge branch 'agent_info_detail' into 2013-2-11

commit 3777e2856f21e35f4dc30aad4bc9cc89c00b8e2e
Merge: 3bb1217 4cab7f0
Author: Seangchan Ryu <sryu@fnal.gov>
Date:   Mon Feb 11 15:24:54 2013 -0600

    Merge branch 'vocms236-2' into 2013-2-11

    Conflicts:
    	src/couchapps/WMStats/_attachments/js/minified/global.min.js

commit df683cf567bddde99e95e47d21ebefeacd18c065
Author: Seangchan Ryu <sryu@fnal.gov>
Date:   Mon Feb 11 15:20:43 2013 -0600

    add agent detail info

commit 4cab7f09ce339ab3f776106a09e6e259bb61ca47
Author: Seangchan Ryu <sryu@fnal.gov>
Date:   Mon Feb 11 15:17:16 2013 -0600

    add link to the job number

commit 4d4f96014232ef9c43abce5aafbb2aaaae715a5e
Author: Seangchan Ryu <sryu@fnal.gov>
Date:   Wed Feb 6 14:10:38 2013 -0600

    add agent detail work in progress

commit 9dc747372a1ed10d12b78ad8a764edda3ca0dd5c
Author: Seangchan Ryu <sryu@fnal.gov>
Date:   Fri Jan 25 15:23:38 2013 -0600

    add queue column
Bugfix in WMStats update document

The last status for aborted requests is aborted-archived. Fix a typo in the update function.
Merge pull request #4437 from dballesteros7/bugfix-status-update

Bugfix in WMStats update document
Merge pull request #4436 from ticoann/march_deploy

march deployment candidate for wmstats
Merge pull request #4435 from hufnagel/stageoutexception

fix bug in stageout exception handler
0.9.44

Signed-off-by: Stephen Foulkes <sfoulkes@fnal.gov>
Bugfix for Global Workqueue

When splitting a large dataset (>100 blocks) the workqueue can blow up and leave
the requests in funny states. This comes from the latest additions triggering
the max size of an URI in an update call to couch.
Adds unit test for dashboard reco performance reporting
Merge pull request #4439 from dballesteros7/fixWorkQueue

Bugfix for Global Workqueue
0.9.45

Signed-off-by: Stephen Foulkes <sfoulkes@fnal.gov>
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
Bugfix for file information

In some occasions the TaskArchiver fails to delete some file records
correctly from WMBS and some records are left with the default
values in wmbs_file_details. If a second workflow comes with the same
input files it may find zero events files in WMBS which causes
problems in the splitting algo like EventAwareLumiBased. Fix
this by updating the file information in WMBS when trying to add a new file
that is already there. This rarely happens so there is no real cost.
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