[XAPID-1088] fix resource leak, address comments
This core plugin for apid responds to apidApigeeSync events and publishes an API that allows clients to verify an API key against Apigee.