Move doc-comments parsing classes to doc/ subdir.

Another cleanup.
Rename DocType to BaseType.

This way it's clear that it's not really related to the items in doc/
directory.