actually save the site panel/params now
update site panel template vars
fix view samples and edit sample template site variables
fix edit sample form and update models to use subject_code not subject_id
update rest api views/serializers/routes with basic fixes to get them working again...needs more testing