Conditionally include git branch info in window title.
Switch to using hgit.
Remove global statements.