Simple event handler implementation (with @Gounlaf)
Add examples for event handler implementation
FIX Use native in_array in on() method (see PR39 - https://github.com/Wisembly/elephant.io/pull/39)
Use is_ressource function in close() and keepAlive() methods : this allows infinite loop to stop when close() is called
Merge pull request #39 from williamklein/master

Simple event handler implementation (with @Gounlaf)