Added basic_auth to hg

Now with the (hopefully) working code
Added support for basic authentication to hg provider
Updated unit tests
Updated hg readme and added examples
I did a lot testing on the amount of quoting required, and this was the only quoting pattern that I could get to work. Without the quoting here HG failed to parse the arguments properly.