Karma chameleon

This is the beginning of the work to run all the tests via Karma.