Remove unnecessary Player constructions in Lua scripts
registerEvent optimizations

Use static_cast instead of dynamic_cast to omit run-time checks
Minor optimization in Dispatcher
Improve accuracy of scheduled events

Scheduled events are pushed to the front of the Dispatcher task queue
Scheduler optimizations