Rewrite the PackageIndex again
It's a unified index again, rather than one for looking up by an InstalledPackageId and one for the source PackageId. The new one lets you look up by either. It also maintains the order of preference of different installed packages that share the same source PackageId. In configure we just pick the first preference.
Showing with 279 additions and 283 deletions