Add custom rest endpoint to allow fetching AOP config values (currently only used for allow_portal_status_change).
Check the contacts list isn't empty before returning.
Add a link between cases and contacts to store the original contact that raised a case from the portal.
Populate contact_created_by_id when creating a case from emails.