fix js tests and add some more
revert change to api
fix for tests running twice - note: karma seems to always run phantomjs but chrome etc can also be used, fix generation of test coverage and use dots for progress
Merge remote-tracking branch 'upstream/release/bb-refaktor' into feature/354-js-upstream-merged
Merge pull request #277 from onepercentclub/feature/354-js-test-fixes

#354 js test fixes