added old entity as parameter for updates and added before delete hook
changed UpdateUser ro take a pointer
Merge branch 'feature/change-user-mail'
Merge remote-tracking branch 'origin/master' into feature/user_management