Added custom kernel events

* Added 8 kernel events
* All events class tested
* Fixed some CS
* Updated documentation and added Events docu
* Added phpunit definition file