Karma integration

This PR adds a generator for scaffolding our new standardised JS testing framework, Karma with Mocha + Chai.