Fix module exports with closure

Patched src/shell.js to use module['exports'] = Module; which prevents the closure compiler minifying module.exports thus allowing Module to be correctly seen from node.js.

Added tests into tests/Module-exports as a simple test case, run-test compiles with -O2 --closure 1 and then calls node main.js to check that all is well