git-gui: Refactor some UI init to occur earlier