Added support for mercurial ssh authentication to TeamCity and optimized performance