export.js: Export in all CommonJS environments

Closes #521
For envs without `module.export` support, we need to export the whole `QUnit` object, so properties like `QUnit.config` can be accessed.