Adds some tests using Mocha, including a failing test of a new crashing attack.
Adds a .travis.yml file to enable testing with Node 0.10 and 0.11.