Add karma support

- QUnit tests are still funcitonal.
- Karma tests will be added ad hoc.