Pass references to .haddock files
Most of the work on topological sorting of tests
Track down deps (way too complicated)
Better error reporting