No more GitIndexInfo

Replace use of the index (and GitIndexInfo) with LibGit2Sharp's ObjectDatabase and TreeDefinition (via GitTreeBuilder).

@kgybels gets the credit for this. I just extracted it from #524 and deleted GitIndexInfo.