Add revision link to logviewer (1032504)

This work addresses item 2 of Bugzilla bug [1032504](https://bugzilla.mozilla.org/show_bug.cgi?id=1032504).
`It would be really handy if the log viewer, linked to its resultset on treeherder.`

I have split the main bug above into separate PR's to speed up delivery. And to make things easier to revert anything, in the (hopefully unlikely) event that was necessary.

The revision now appears as a suitable link in logviewer, and handles revisions of varying sizes. I've tested a variety of logs from failed jobs from different repos and it appears to behave correctly on both Firefox and Chrome.

During the work, I thought I might have required other logviewer controller parameters. That turned out not to be the case. However during that period, I agreed with @camd on IRC that a sorted alphabetic list for main elements followed by alphabetic Th elements made sense. Similarly mimicking the same ordering for the .js modules in logviewer.html (which is already sort-of in place in index.html) as alphabetic and divided by category. So even though no additions ended up being needed, I left that re-ordering in. There was also some minor white space cleanup.

If I get time I will do that alphabetic re-ordering across all files, later, in separate work. It seemed to make it a bit easier for me to compare files.

Tested on Windows:
FF Release **30.0**
Chrome Latest Release **35.0.1916.153 m**