Make nbdiff without arguments work with a hg repo

This pull request uses python-hglib instead of raw hg commands.
This adds another depencency to the project but makes the code much simpler.

I haven't written any tests yet. I might write them in the future, when I have more time.