miscellaneous cosmetic adjustments.
Git.transact: factor git repo state into an object.

Preparation for Git.transact support for submodules.
Merge branch 'master' of github.com:JuliaLang/julia