973784 - improving performance of depsolve

Using the pre-calculated serialized version and release as stored in the database to do version comparison rather than re-calculating on the fly. This along with a couple of other tweaks has resulted in a 40x speedup.
improving a unit test
Merge pull request #513 from pulp/mhrivnak-973784

973784 - improving performance of depsolve