Fixed test.

testRevlog was expecting 12 commits but getting 19. Looking at the
hello-world repository on github (on which the test executes) the 19
commit count appears to be correct.
Merge pull request #129 from alexmob/testrevlog_failure

Fixed test.
Merge branch 'master' into issue-231-dev
Potential fix for personal repositories not collapsing.

JQuery does not like tilde in element ID's. As personal repositories
can contain a tilde in the element ID it's breaking the collapsing/expanding
JQuery code. This change specifically looks for a tilde and changes it
to an underscore when it's used in an ID; however, the fix for this is
possibly to check for all restricted characters and replace them if
they're going to be used in an ID.

This is not the final change, possibly can be cleaner, will investigate
further.