Karma JS testing

Changelog:
* initial Karma configuration
* added angular mocks to the mix
* wrote initial spec

To run the JS specs, execute ```karma start spec/karma.config.js```