Use the Mercurial CLI commands and not its internal API (#57)

@davehunt this is a straight port from the hotfix-1.5 branch. I would say we check in a follow-up issue if we can move to mozprocess, and what's necessary for it.