Add mercurial repository support.

Unit tests are not coded for the moment, I would like to discuss if a tiny mercurial repo should be embedded in source tree or remotely on bitbucket or others.
mention the error too:

```python
except HgServerError, err:
            self.log.error("Could not connect to local mercurial repo: %s" % err)
```