Rework index_references.
Rework index_references.

(More explicitly) handle already_indexed and make
sure files without parent_hash don’t get their
reference added.
dokterbob/ipfs-search,ipfs-search/ipfs-search,dokterbob/ipfs-search,ipfs-search/ipfs-search,dokterbob/ipfs-search