Add Git Permissions.
Add permission field to treeEntry.
Add permission to git index.
Pass permissions to be written by commit.
nits.
Add function to create dummy treeEntry.
Merge pull request #2466 from dart-lang/fix_git_permissions

Fix git permissions