Cleanup membership api
Membership API date calculation CRM-13153

----------------------------------------
* CRM-13153: Improve Membership API to calculate dates
  http://issues.civicrm.org/jira/browse/CRM-13153
Merge pull request #1331 from colemanw/memberApi

Membership API date calculation CRM-13153