Added a basic event queue system.
Update header guards.