Authenticate users using CMS API (CRM-13229)

This should eliminate the need to directly connect to the CMS database and allow all access to occur through the CMS APIs.

----------------------------------------
* CRM-13229: Authenticate users using CMS API
  http://issues.civicrm.org/jira/browse/CRM-13229