export.js: Export for all CommonJS environments

This includes tests for Node.js, Rhino, and RingoJS.

Closes #521