973784 - refactored dependency solving workflow for performance

Data in now cached between iterations of dep copying, and some
steps were optimized out of the workflow.

https://bugzilla.redhat.com/show_bug.cgi?id=973784