Build: Support CommonJS non-module exports

Replaces the narwhal test file with instructions for testing with Rhino.
Extends it and the node one with testStart callbacks and a module.

Fixes #521