Fix event emitting for entities
Fix event emitting for entities

Problem: Emit event functions were not properly called in entity CRUD.
Solution: Refactor event function calls and perform the right calls.

cgwire/zou