fixes #1646, #3103 - enable cloning for templates, and add read-only options

See the explanation above for load_ajax_vars.  This is how the other views have it for cloning.  

multiple_checkboxes tries to find the associations.  When you clone, it's not saved to the DB, so there are no associations.