allow specs to use ES6 syntax

Small changes to allow spec files to be authored using ES6 syntax. Includes changes to ensure that Mocha tests run in Node or by Karma are transpiled. I did not change the syntax of existing specs other than a single change in `actions.spec.js`. When discussing with @ifandelse, the thought was that this would potentially be good to have in place as an example for future projects.