Add dependency resolver
Derive dependency hierarchy when initializing Resolver
Use Resolver when installing dependencies