Policyfile solve graph

Adds dependency graph solving to the policyfile components.