VCS completions refactoring

Here's a little refactoring effort for the VCS completions. Also a fresh hg completions file (autogenerated).