Added the framework for the event handling.
Added Allegro stuff and cleanUp method to handle destruction.