Add patch.py for handling mercurial log patches and diffs.
Add mercurial as dependency.
Include patch when retrieving a log for a certain commit.