Update hgchg.bat

More options, configuration file, code refactoring, dependency checking.