Improve the commitdiff.

Same as PR-225, but against gitblit:develop.

Width of the line number columns reduced to 2px padding and 3em width. On my screen the three columns (two line numbers and +/-) are 95px, vs. the two line number columns at dev.gitblit at 82px.

Sorry for the duplicate PR, but GitHub didn't let me rewrite the original PR (which was based on master). I just hope I didn't mess up somewhere in this rebase confusion.
Just notices that `StringUtils.escapeForHtml()` does _not_ replace ' by &amp;apos;. So either escapeForHtml() should do so (after all, the pages are declared as XHTML, so using &amp;apos; should be fine), or I need to change the quoting for the id attribute here to use double quotes.