CRM-14951 fix for number of terms on IPN
CRM-15527  fix crash on membership renewals due to ->id not being set
CRM-14951 num terms not respected for first membership
CRM-14951 test for numterms not applied
sync 4.4 testclass with master