CRM-13072 fix getcount for DAO based classes

Conflicts:

	api/v3/Generic.php
	api/v3/examples/OptionValue/SortOption.php
	tests/phpunit/api/v3/OptionValueTest.php
CRM-13072 standardise tag api to fix errors revealed by upgraded tests
CRM-13072 upgrade contribution soft test as cannot pass without upgrade due to invalid contributionTypeDelete call
CRM-13072 upgrade ContributionTest
CRM-13072 upgrade CustomFieldTest
CRM-13072 standardise note BAO & API
CRM-13072 fixes required to make JobTest pass now 'hidden' failures exposed
Refactor search builder js to better handle different operators CRM-13032
CRM-13072 upgrade LineItem test to pass
CRM-13072 upgrade Mailing Job test & api to pass
CRM-13072 upgrade Membership & Membership Payment test classes to pass
CRM-13072 shorten syntax conformance test class name
CRM-13072 upgrade Paritipant Payment test classes to pass
CRM-13112
CRM-13072 upgrade Pledge Payment test classes to pass
CRM-13072 upgrade tag test & api classes to pass - although I think the idea of being able to specify tag id on create is a bit dodge
CRM-13072 upgrade relationship & relationship type tests to pass
CRM-13072 upgrade MailingTest to pass
Start the session on rest.php, so it avoids impossible to find side effects. Trust me, I lost hours on that one: civi needs a session.
CRM-13072 upgrade MembershipStatusTest to pass post -getcount fixes