Refactored event system

Refactored event system so that event listemers must be registered
Added levels to logging
Removed old caching queue class
Removed logging class into example app implementation