WIP.

I'm thinking git-vendor can actually use submodules with a hook for
branch swapping. It might be simpler.