Karma / QUnit

@thraxil don't merge this yet, I just want to get a pull request going.

This should be able to integrate with jenkins using karma's junit xml output.