Refactor v2 api calls CRM-9794

----------------------------------------
* CRM-9794:
  http://issues.civicrm.org/jira/browse/CRM-9794