ENH: Test examples

Adds example testing to Travis. Can test locally using `make test` (which will run it) or `make examples`.
But if the event loop is never executed, then most of the code is never actually tested ?