Added basic_auth to hg

Added support for basic authentication to hg provider
Updated unit tests
Updated hg readmes and example