Add events handling functionality. on() function and EVENTID object.
Merge pull request #8 from milk3dfx/master

Add events handling functionality. on() function and EVENTID object.