move events to config.php
switch to global event dispatcher
add model factory
removed debug code