Qunit module preparation rewrite

Needs preliminary review. Missing at least some documentation and changelog entry.
This functionality is now integrated into `prepareUnitTestModule`.