I haven't digested your post yet, but obligatory link to my thoughts in this direction (which remained unimplemented, sadly)
[RFC] Toolchain based build process