Add details-for-tree-entry

This adds an example which shows how to retrieve details for a
tree entry. You have to go into the index and get the details
since they aren't stored on the tree entry itself. This is the same
for a blob entry as well.

This helps with #221