Fix Ezp-21665: create "options" object for the CAPI

JIRA issue: https://jira.ez.no/browse/EZP-21665

Fixed.