CRM-14370 - API Kernel - Dispatch events
CRM-14370 - API Kernel - Extract TransactionSubscriber
CRM-14370 - API Kernel - Extract XDebugSubscriber
CRM-14370 - API Kernel - DRY exception-handling; fix inconsistencies
CRM-14370 - API Kernel - DRY result formatting