fix for : form rule validation notifications not shown
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
CRM-14503 patch fixes grouphierarchy error
CRM-14487 - Fixed PHP notices.

----------------------------------------
* CRM-14487:
  https://issues.civicrm.org/jira/browse/CRM-14487
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
Merge pull request #3024 from relldoesphp/CRM-14503

CRM-14503 patch fixes grouphierarchy error
Merge pull request #2744 from pratik-joshi/CRM-13992_temp_fix

CRM-14386 fix for : form rule validation notifications not shown
Clarify label and remove help on Create Participant form.
Merge pull request #3035 from davecivicrm/fixEventAmountLabel

Clarify label and remove help on Create Participant form.
fixed indentation and added comments, CRM-14503

----------------------------------------
* CRM-14503: Incorrect global groups listing
  https://issues.civicrm.org/jira/browse/CRM-14503
Merge pull request #3036 from kurund/CRM-14503

fixed indentation and added comments, CRM-14503