test: add PhantomJS launcher for karma.
test: add 2 new gulp tasks for headless testing.
test: update default test case for npm.
test: add .travis.yml