Fix edit page

Abstracts forms from duplication in /submit.html and /edit.html templates into separate form specific snippets, which can then be included in the submit and edit templates.

Also made the CONTEXT object names in the submit view consistent with the edit view, allowing interchangeable templates and removing source of unnecessary duplication.