Fix the `onNewEvent` loop

This fixes error handling in the infinite `onNewEvent` listener.
Set-up travis-ci to have pretty output

This sets-up travis to pass in pretty colored test output flags to
`cabal test`.