Switch to custom Mercurial client

This switch would provide better flexibility and error reporting.
Update HTML UI to validate commit ID and prepopulate commit message