add product api test:
minor code tidyups
minor code tidy ups
fix comment blocks
CRM-14181 remove form-related enum options from static functions (need to separately alter form elements) as this breaks test & returns invalid options (eg api)
more comment fixes
fix invalid php count statement (identified by IDE - unsure if it was causing bug
CRM-14181 - Cleanup membership form
tpl cleanup
Code cleanup
Merge branch 'tests'

Conflicts:
	CRM/Core/SelectValues.php