[#15] Adding the structure for an event system and fixing issues with rendering subsystem.