Merge pull request #2 from DigiTechs/master

Events
Implemented Lua events
Failed to implement task scheduler.
Half-finished thread scheduling.