Added listener support

Possibility to add a listener for a specific event

$debug->addListener("event", function($text) {
     echo $text;
});