a simple event emitter implementation in lua similar to http://nodejs.org/api/events.html