Rewrite dependency loading

Now builds again

more refactoring, dosn't build yet

(0) -100 -30 -10 -3 +3 +10 +30 +100 tip

mercurial