Basic Event System added

Added basic event handling to the engine.