Refactoring to prepare modularization of the compiler.

Actual modularization is delayed until 2.12.

The one big (one-line) change is to make the interactive compiler
independent of scaladoc. We have one "integration test": `MemoryLeaksTest`.

This commit adds a bunch of comments marked with `TODO: modularize the compiler`,
that should be uncommented when we're ready to continue the modularization effort.

I decided to merge them commented out to avoid having to rebase xml patches.
There's still some chance of bitrot, but I'm willing to take my chances.

I previously refactored the build to make it easier to add jars in a coherent way,
which hinges on the `init-project-prop` mechanism, so the relevant properties are
already injected there.