Add minimal karma tester for PhantonJS.
See tools/karma.conf.js for more information.