Add module support

This patch adds support for [latest ES6 module syntax](http://jsmodules.io), which is compiled to CommonJS.
It uses the same convention for `default` as [Square's es6-module-transpiler](https://github.com/square/es6-module-transpiler), ie. `module.exports['default']` / `require('something')['default']`.