[FIXED JENKINS-17317] ”My Views" links leads to 404 Not Found.

(cherry picked from commit d33e22d392a3f7346f9cd9a9f87b79485fdbee37)

Conflicts:
	changelog.html
[JENKINS-17317] rawEncode should be used instead of encode

(cherry picked from commit 477e8979eb823e2a9c08eac9bab2ca6d71211594)
[FIXED JENKINS-15437]

The exception handler ended up adding almost all the headers again,
resulting in a lot of duplicate headers.

Most critically, stapler was adding "Content-Encoding" header twice,
breaking browsers.

(cherry picked from commit d3575548bbd39acdbc0f73533f9078d59828b428)

Conflicts:
	changelog.html
	core/pom.xml
[FIXED JENKINS-17247]

Reimplemented a proper topological sort and generates a total order
comparison function.

(cherry picked from commit 8d0f7f5688bb4a6e9083a838695d378ee737f49d)

Conflicts:
	changelog.html
[JENKINS-17247] Refactored a bit to extract the SCC computation into a reusable code

(cherry picked from commit edb9bc5aca56cb521d58b30a53cea203e673efc1)
[JENKINS-17247] Not sure why the compilation is failing but this seems to work

(cherry picked from commit 0ee7a5eec1e6ed167b6f96b2a73a5dd1976f5679)