WIP: port to ES6 modules

1 job for wip/mlundblad/es6-modules in 10 minutes and 17 seconds (queued for 1 second)