Add CommonJS support.

This PR adds the option to compile to CommonJS modules and switches the `:global` option to `:globals` to match the options of es6-module-transpiler's compile-modules executable.