Move the index to cffi and add conflict information

I wanted to add information for conflicts, so I went and put it into python beforehand.
Because it's a special function. I went back and forth on that one, but this is a private function that only makes sense inside pygit2. The consistency should go the other way.