HTML Reporter: Move QUnit.reset back to core to run it before testDone

Since the HTML reporter will always be the first to register the testDone callback, there's no way to do custom fixture cleanup before QUnit.reset runs. Moving this in src/test.js makes sure that the fixture reset runs after any custom testDone callbacks, allowing proper cleanup.

This is still only an intermediate solution, since we can't just remove QUnit.reset without addressing the need for custom resets. The source comment in front of the QUnit.reset call is therefore somewhat misleading. I guess we can live with that.

Fixes #697
Ref #617
We're getting a JSCS error here because of line length.

I was working on this at the same time and used this:

```js
QUnit.reset = function() {

	// Return on non-browser environments
	// This is necessary to not break on node tests
	if ( typeof window === "undefined" ) {
		return;
	}

	var fixture = defined.document && document.getElementById &&
			document.getElementById( name );

	if ( fixture ) {
		fixture.innerHTML = config.fixture;
	}
};
```

We have the `defined.document` on the core top, so we can keep it.