improve qunit and other framework support

This allows:

* `QUnit.testDone` to be auto registered for bond cleanup
* any other framework to registery `bond.cleanup` properly