Endpoints and db architecture to support a role based IAM system.
Minor tweaks to reduce warnings in IDE e.g. unused imports.