Use grunt-karma and grunt-simple-mocha for running all tests.

As promised the conversion to using karma. 

Tasks left to do

- [ ] Make all tests pass again
- [ ] Configure Travis to use Firefox