Major TGitCache improvements

Partly rewritten TGitCache logic to improve accuracy: Reduced flickering of icons and better support for "unversioned files mark parent as modified".