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

When we load the new form, the associations aren't saved in the database so we have to store them in global variables like @operatingsystems, @oraganizations, @locations.  It's not ajax here, but it's how it's named for the similar feature in other models.