split beforeRun of DooApiController into smaller methods to be reused in a child controller if override of beforeRun is desired
DooApiCaller change to a class file for easier testing and overriding methods, inject app into api caller before making any calls. TODO: switchable to http client.
php itself doesn’t serialise closure properly. Resort to custom method