[WIP] Refactor es6

Puts ES6 modules in place + grunt build workflow. Related to `refactor` branch by @machty