Support for module base classes, clearing caches, and other various bugfixes/improvements, refs #689