Added event dispatch capability
Merge https://github.com/vrndr/gamedev