Initial event system commit + small fixes
More basic event stuff
Merge pull request #1 from flyingcircle/event

Event