Refactor v2 api calls CRM-9794

----------------------------------------
* CRM-9794:
  http://issues.civicrm.org/jira/browse/CRM-9794
Merge pull request #24 from colemanw/v2api-d6

Refactor v2 api calls CRM-9794