Factored Depends out of ModuleLoader.

This allows us to reuse most of this infrastructure in Scaled to integrate
pacman projects into Project Service.