Moved library complexity calculation to qc.

Returns a dictionary of the calculations and complexity estimation of
the library for use with the new qc file generator.