Independence of Mercurial client version, using new helpers
This introduces the new LocalRepo.assert_hg_failure()
helper, which switches between stdout and stderr according to the Mercurial client version, and uses it in almost all tests expecting an error when calling hg
.
Closes #21