Event fixes

This will fix a bug that unitOfWork uses wrong parameter for onFlushEventArgs and adds usage of \Doctrine\Common\Persistence\Event base classes