forms: Hide 'require for ticket close' for non ticket-related forms
oops: Fix regression in advanced keyword search
forms: Validate fields like the thread-entry
queue: Reimplement collaborator icon
oops: Fix incorrect alter table statement
oops: Don't crash uninstalling a plugin with no config
oops: Add two small utility functions
plugins: Don't crash if an installed plugin disappears
i18n: Make roles translatable
i18n: Localize the ticket view page
oops: Allow staff edit of tickets with immutable data
i18n: Localize client ticket view
i18n: Localize status on ticket queue pages
orm: Move user directory to ORM
role: Add a `permissions` field to manage pems locally
role: Assign clear role for primary department
role: Forbid removing agent primary role
Merge pull request #1539 from greezybacon/feature/role-permission-field

Slight rework of Role feature
orm: Improve Dept's use of ORM

The commit also renames some fields in department table.
Role-based Access

Introduce the concept of role-based access for agents.