Return `this` in `on` and `emit` methods.
Add Travis CI test configuration.