Add Karma as Test runner

Closes #39.
More work on Karma integration, still WIP
Fix Jasmine tests in use with RequireJS
Get Karma working with RequireJS implementation - Jasmine fails

Currently Jasmine fails since we don't use a baseUrl in
js/config.js. If we set a baseUrl we overwrite what is defined in
tests/test-main.js.