Add helper fn for json_encode + exit
CRM-15172 - Add chainSelect method to CRM_Core_Form
CRM-15172 - Refactor forms to use addChainSelect method
Ensure widgets are initialized after inline-edit form error
CRM-15172 - Add centralized state/county validation
CRM-15172 - Fix profile state/county required options
Merge pull request #3942 from colemanw/chainSelect

CRM-15172 - Add chainSelect method to CRM_Core_Form
Ensure headers are set correctly for json output