Added js_var_format argument and corresponding setting.

Allows storing the CodeMirror JS objects in global variables, formed by interpolating the form field names with js_var_format.