Add Karma for testing

This commit allows grunt to use karma for testing. It also modifies the
karma file to use Firefox instead of Chrome when running the tests.