Make eagerFields configurable for getEntitiesByIds.

These fields will get a JOIN FetchMode.
Cleanup of several classes

  - uncommented unused variables
  - added generic wildcard type argument to several declarations to avoid
    warnings in the IDE
  - removed unused imports
added generic wildcard type argument to avoid IDE-warnings
Use Sets and not Lists for Collections.

Replaced List of Attributes and grantedusers with sets. This maxed out the
performance in the updatelayer method.
Add resolutions and scales to the mapconfig model.
Change visibility of the initializeDeep methods.

This way we we can use them in subclasses. Also guard against null pointers
when initializing.
Ongoing Refactoring (Mostly Users / Roles / Groups).
removed unused imports
Ongoing Refactoring (Mostly Users / Roles / Groups).
Ongoing Refactoring (Mostly 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
Fixed a bug in DatabaseDao, so that static final properties will be ignored.
  - become smarter in getAllFields Method by ignoring @transient fields and statics
  - fixed exception when using only one field/ignorefield on clientside request
Allow deletion of groups even when not in the group for ROLE_ADMIN / ROLE_SUPERADMIN.
Give new groups some roles when they are created.
ongoing users / groups refactoring
  - 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.