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.
true, then again, the uses of logger makes it hard to use this outside EB (as I noticed in the clean up script).