Qunit module preparation rewrite

Needs preliminary review. Missing at least some documentation and changelog entry.
We can do with 3. It should be enough. Perhaps, after we drop support for IE8 then we increase it.