Fix form rendering and submission

* fix 'all' helper to 'trim()' content before passing into jQuery
* add 'checked' attribute for Control.company_control field
* handle checkbox fields as booleans
Add default context_id hidden field to all forms
Fix 'invalid character' error