Fix Undefined index when updating an entity that doesn't have definitions.
Add hook_user_insert, hook_user_update, and hook_user_delete support