Qunit module preparation rewrite

Needs preliminary review. Missing at least some documentation and changelog entry.
The reason we didn't take this approach to start is because it almost certainly adds a lot of time to the test suite run. I thought we talked about that on our call?