Modularize scaladoc

Getting very close to a working dbuild, thanks to @cunei!
Opening this PR mainly to test the new PR validation on the first commit, which is expected to pass.