Add event.lua

* Event handler
* Incomplete yet
Update event.lua

* Add M.events() (it's a big function...)