Switched to karma for tests.
Added travis-ci setup for karma.