CRM-15524 - Support addSetting in snippet mode
CRM-15427 Additional Fixes

----------------------------------------
* CRM-15427: Profiles using Participants (Event type), Participants (Event Name) and Participants (Role) custom fields are not available for online registration
  https://issues.civicrm.org/jira/browse/CRM-15427
QA Fix
Additional QA Enhancement
CRM-15524 - Support adding scripts, styles, etc to page header/footer regions in snippet mode
CRM-15524 - Add 'ajax-snippet' region
CRM-15524 - Move static js resources to the html-header region so they don't reload with ajax page refreshes
-- CRM-15475, Retrieved value for membership status id regardless of civicrm_membership_status.is_active field

----------------------------------------
* CRM-15475: Fatal error on membership page if membership status 'Cancelled' is disabled
  https://issues.civicrm.org/jira/browse/CRM-15475
-- CRM-15475, Used Contribution status Pseudoconstant to fetch id rather then using getfield value function

----------------------------------------
* CRM-15475: Fatal error on membership page if membership status 'Cancelled' is disabled
  https://issues.civicrm.org/jira/browse/CRM-15475
-- CRM-15475, changed Cancelled mmebership status to reserved

----------------------------------------
* CRM-15475: Fatal error on membership page if membership status 'Cancelled' is disabled
  https://issues.civicrm.org/jira/browse/CRM-15475
-- CRM-15475, Added upgrade code to make Cancelled status as reserved

----------------------------------------
* CRM-15475: Fatal error on membership page if membership status 'Cancelled' is disabled
  https://issues.civicrm.org/jira/browse/CRM-15475
CRM-15556 fix - Checkbox custom field error of OnBehalf profile on online contribution's confirm page

https://issues.civicrm.org/jira/browse/CRM-15556
Merge pull request #4440 from colemanw/CRM-15524

CRM-15524 - Support adding settings, scripts, etc in snippet mode
CRM-15524 - Avoid loading profileSelector scripts in ajax mode
CRM-15346 - pass more specific context to Drupal.behaviors
Merge pull request #4500 from colemanw/CRM-15346

CRM-15346 - pass more specific context to Drupal.behaviors
CRM-15524 - Avoid loading profileSelector scripts in ajax mode

This commit tweaks the call of CRM_Core_Resources::isAjaxMode to use the simpler static method.
Fix Custom/Page/Option.tpl to separate form from page
fix tpl space
Merge pull request #4501 from colemanw/Fix

Fix Custom/Page/Option.tpl to separate form from page