Rename plugin API key scope resources to use shorter,
cleaner names:
- automations_trigger → automation (action: post → trigger_automation)
- discourse_ai → ai
- discourse_data_explorer → data_explorer
Includes reversible migrations to update existing
api_key_scopes records in the database and updated locale
keys to match the new resource names.
Also adds safety improvements:
- ApiKeyScope#permits? returns false when mapping is nil,
gracefully handling renamed or removed scopes
- ApiKeyScopeSerializer uses safe navigation to avoid
errors for missing scope mappings
- Scope resources are now sorted alphabetically in both
the API response and the admin UI