Make all the modules export their API using CommonJS where appropriate.
Merge branch 'master' into commonjs

Conflicts:
	source/console/config.js
Sugar up loading of modules for tests.
Migrate the Package module to CommonJS format.
Use JS.require() to load dependencies in specs.
Fix the jsbuild integration with the CommonJS package system.
Change dependency-resolving code so that modules work sensibly when concatenated with jsbuild.
Merge branch 'master' into commonjs

Conflicts:
	source/test/reporters/dot.js
	source/test/reporters/error.js
	source/test/reporters/spec.js
	source/test/ui/terminal.js
You need to explicitly make JS a global on WSH.
Just make JS a global anywhere that exports does not exist.
Clean up some trailing spaces.
Merge branch 'commonjs'

Conflicts:
	source/console/base.js
	source/console/config.js
	source/test/reporters/spec.js