chore: update karma to 0.9.4

And also add shared config to make karma configs a bit simpler.