Initial commit for event handling
To make it compile
Add globals.h
Merge pull request #3 from DerSchultze/Signals

Signals