Fix EZP-21666: refactor PromiseCAPI and PromiseService classes
Silencing q false positive warning on rejection handling,
CS cookbook fixes