Remove Organization -> User dependency in apps
Description
To prepare for completely removing the relation between Users and AppMembers, we need to refactor some of the organization functionality. Apps have a lot of functionality relating to Organizations. For example, when the security policy is set to organization
it checks if the User is in the organization of the app.
All these kinds of connections have to be refactored so they use AppMembers, or to have them only happen when creating an AppMember account. Anything so the apps aren't relient on User accounts directly.