Added support for basic authentication to hg provider

Updated unit tests
Updated hg readme and added examples
Redone from a clean clone