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.
improvements based on review
Merge pull request #453 from pulp/mhrivnak-973784

973784 - refactored dependency solving workflow for performance