fix 5.4 static errors
remove unused variable
fix error to throw Exception
CRM-13234 tidy up on whitespace, cleanup routine
CRM-13234 update test to ensure 'primary' works with & without Ucase
CRM-13234 update add so that  is option per standards, comments block fixes
comment fixes
api/api.php fix comment block
CRM/Core/BAO/UFField fix e-notice, CRM/Core fix comments
CRM-13234 api/v3/UFField clear cache after create, default to fixing weights & using current user as creator, E-notice, comments
api/v3/UFGroup.php fix comments
api/v3/UFField.php default is_active to TRUE
CRM-13234 tests/apiv3/profile switch to creating ufFields via api so we can leverage the cache clearing functionality
As always expanding api usage in the tests extends api test coverage & required a few fixes
CRM-13234, possible fix for CRM-13252 api nesting functionality fix inappropriate re-use of a param causing bad nesting outcomes
CRM-13234 api/v3/CustomField more cache clearing on custom field create
CRM/Contact/BAO/Contact.php comment block fixes
CRM-13234 fix profile to support lcase 'primary' & fix existing test failures
CRM-13234 tests re-add test to ensure email-Primary still works
CRM-13234 ensure original params are tested
Merge pull request #1634 from eileenmcnaughton/master

CRM-13234 api/v3/Profile fix tests & support lower case primary fields