QUnit: Detect unfinished jQuery effects or ajax requests in teardown

Based on jQuery test suite
https://github.com/jquery/jquery/blob/bcca4f041/test/data/testrunner.js#L113-L125

Change-Id: I1dba146a6795887c23c806f292c6425662ea4aad
Merge "QUnit: Detect unfinished jQuery effects or ajax requests in teardown"