Fixed some small issues in MySQL store.
Implemented event manager system and a lot of events happening in various stages of entity's life.
Also changed $repository->findOne() method to go through $repository->find() for consitency.