Replace jasmine with mocha and mocha-phantomjs
Update test syntax and stubs
Add 'test' script to package.json for 'npm test'
Add travis config and bump node dep
Speed up time-dependent tests with sinon fake timers
Remove vendored jasmine
Customize test runner output for Travis

The "dots" reporter isn't very helpful in the Travis log, so allow overriding
the reporter by setting a make variable, and set it to "spec" when running "npm
test".
add tools/build
update test_phantom for mocha