[JENKINS-7866] - Fix failed tests displaying as Yellow on "History for Test Results" page.

The colours where added in a different order to the data, resulting in failed tests displying as yellow and skipped tests displaying as red.

(cherry picked from commit 7ef1d37730997a06386670c343782e55fe4c029f)
[FIXED JENKINS-21639] Prevent creation of job named '.'.

(cherry picked from commit 780b38bc755028f4c4d72378896407a182bd5b30)
[FIXED JENKINS-21457] Replace description in error dialog instead of appending

(cherry picked from commit 581024ba0a4d4e68feb6b3cc7137015768b33520)
[FIXED JENKINS-20345] file descriptor leak in zip file download

When downloading a zip file with all of the artifacts, file descriptors
would be opened and never closed. This resulted in many leaked file
descriptors which would only be cleaned up the next time the garbage
collector was run.

For directories with a large number of files, the zip file would be
corrupted because an exception was thrown during the process of creating
the zip file when the process ran out of file descriptors. Jenkins was
then left in a very brittle state as random threads wouldn't be able to
open files or sockets anymore until the garbage collector was run.

(cherry picked from commit f0bbc66921fec56dd9565c2a5146734f20f2fb6c)
Do not attempt to parse blank responses from cancelled XHR POST requests

An XHR POST request may be cancelled by navigating away from the page while the timeline is loading.  This causes alert spam on Chrome and Safari.
(cherry picked from commit 72bb47731fda65c4b27e5e12e1942e5c44738145)