Switches to Gobble for builds and refactors for ES6. Also fixes a few bugs.