Add build.json to karma config

Karma serves the testrunner as /context.html, so we adjust XHR paths when we detect running under karma
Merge pull request #450 from azakus/make-karma-serve-build-json

Add build.json to karma config