Update AppEntry foregnkeys for user and membership to SET_NULL on delete.
Merge branch 'refs/heads/master' into membership_multi_apps