Introduce PackageMap, PackageConsumerInterface and PackagePathFinderInterface, process packages in correct order.