Adding an event system for CodeIgniter.