Ongoing refactoring (Users / Roles / Groups).
removed unused imports
Ongoing refactoring (Users / Roles / Groups).
Ongoing refactoring (Users / Roles / Groups).
Move Modules from Users model to Groups.

Added transient getModules() method to user. Removed property user_module_list
and the unneeded transformSimpleModuleListToModuleObjects() method.
Minor change to avoid IDE warnings
Using constants to avoid the use of hardcoded inline strings
Adapted the refactoring of constants
Ignore static final props when getting fields.
Smarter getAllFields method.

getAllFields method now ignores @transient fields and statics. Also fixes
exception when using only one field/ignorefield on clientside request.
Allow deletion of all groups for admin/superadmin.

Previously a detected admin/superadmin also needed to be part of the group he
was about to delete.
Give new groups some roles when they are created.
Ongoing refactoring (Users / Roles / Groups).

  - added initializeDeep function calls to some methods to get eager results
  - added methods for getting the granted application of a user
  - secured gizmo to only show granted (by group and owner) applications
Removed unused imports.
Ongoing refactoring (Users / Roles / Groups).

  - extended getAllEntities Method to make use of initializeDeep by flag
Revert to previous revision
Revert to previous revision
Removed some TODOs and adpated createUser() method (removing Role from method signature) because Users are not associated with roles anymore since we have groups.
Give groups a field that controls whether they can be deleted.
Added transient getRoles() method to User model. The roles of a user will be the (distinct) unification of all roles of all his groups.