better awareness of primary branch

Closes https://github.com/afeld/git-plugins/issues/7. Closes https://github.com/afeld/git-plugins/issues/8.