Change ResourceMap to use the project instead of its own set of stores.
Move responsibility for indexing from the stores to the project.