tests: Fixed test-timeout.js events unit test

The callback is called twice and the second time a "ECONNRESET" error is
passed which previously broke the test.
Added Travis CI configuration file
Merge pull request #683 from Turbo87/travis-ci

Travis CI support