export.js: Export in all CommonJS environments

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

Closes #521