Mercurial: faster prompt, auto-workon

I've added auto-workon for virtualenvs for mercurial repositories like it works on git.

Fixed speed problem of the agnoster theme when inside mercurial repositories, which was slow to the point of being unusable: it was calling hg many times, now it calls hg only once.