loggers and event dispatcher are now available outside framework
added phpunit tests