export.js: Export for all CommonJS environments

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

Closes #521