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-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-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
Merge pull request #4467 from atif-shaikh/CRM-15427AdditionalFixes

CRM-15427 Additional Fixes
Merge pull request #4492 from pradpnayak/CRM-15475

Crm 15475
Fix for CRM-15544
Merge pull request #4504 from rohankatkar/CRM15544

Fix for CRM-15544
CRM-15475 :fix generated data
Merge pull request #4506 from yashodha/CRM-15475

CRM-15475 :fix generated data