[mercurial] Added support for installing.

This the ~/.hgrc.machine and ~/.hgrc.user if they don't exist.