CRM-14370 - Refactor civicrm_api as API kernel. Add DoctrineCrudProvider.