WIP: fix deps to include Karma

This updates package.json with karma and gets rid of some other breakages.