Qunit module preparation rewrite

Needs preliminary review. Missing at least some documentation and changelog entry.
The absence of all of this is probably the reason why now, when the tests run, the dom manipulations are visible as they occur, inside the editor iframe. For me, it is so, so much more awesome this way.