Build: Support CommonJS non-module exports

Replaces the narwhal test file with instructions for testing with Rhino.

Fixes #521

cc @jdalton
Do we want to test for the condition described in the comment, e.g. turning this into an `else if` rather than just an `if`?