CRM-14197 pass line items & isTest into renewMembership (derive at form level

towards CRM-14197 pass lineitems & isTest into renewMembership

remove minor code duplication, ensure  set to form value

minor cleanups
param fix & clarify object to pass to updateRecurmembership fn

declare membershipContributionID & use that

remove  param

don't check for empty on  - would have had an error

remove unrequired param

set membershipContribution directly as required
refactor processing of secondary transaction into separate function
evaluate form contribution TypeID on form function
use try catch rather than passing errors as a reference
CRM-14478 - CRM_Core_EntityReference - Move SQL construction

This anticipates polymorphic SQL construction -- where have different
classes for different types of references (eg conventional SQL FKs; dynamic
FK; option-value FKs) and where each class constructs slightly different
SQL.
CRM-14478 - Split CRM_Core_EntityReference into different classes
CRM-14478 - Add CRM_Core_Reference_OptionValue
CRM_Utils_Array::index() -- Allow indexing when some keys are NULL/undefined
CRM-14478 - Add CRM_Core_DAO::getReferenceCounts()
Merge pull request #3337 from NileemaJadhav/CRM-master

--Fix notices on Case view page for status with filter condition
show status label instead of name in event dashboard
EventInfo: use a title and localized status names
CRM-14664: js fixes
CRM-14478 - Add generic API, "getrefcount"
CRM-14478 - CRM_Case_XMLRepository - Add getActivityReferenceCount(), getRelationshipReferenceCount()
CRM-14478 - Allow components and hooks to influence refcounts
CRM-14478 - Count references to activity-types and relationship-types in CiviCase XML
Merge pull request #3322 from totten/master-refcount

CRM-14478 - Add generic API, "getrefcount"
comment fixes