CRM-14370 - Backport API Kernel to 4.5

Depends on https://github.com/civicrm/civicrm-packages/pull/56