Dev karma testing

Rewrote tests to use Karma as test runner instead of JsTestDriver. The tests now use Mocha+Chai+Sinon with code coverage done by Istanbul!  See README.md for setup instructions.

http://karma-runner.github.io/0.10/index.html
http://visionmedia.github.io/mocha/
http://chaijs.com
http://sinonjs.org
http://gotwarlost.github.io/istanbul/