Add qunit style done event

Emit a "mochaTest.done" event with the failureCount and the captureFile so you can do some postprocessing in Grunt.