Added basic_auth to hg

Added support for basic authentication to hg provider
Updated unit tests
Updated hg readme and added examples