Add git commit UI.

Also switch to syncfs for git projects.
Add git checkout UI and fix bugs.
fixed comments.
fix nit.
Merge pull request #631 from dart-lang/add_git_ui

Add git ui