Move index() to ProjectStore.

Sometimes we want to call it straight on the store we know handles a source.