clean up karma.conf.coffee
add karma to package.json
support mocha-phantomjs
use phantomjs for now
really simple test case
fix for mocha in browser