Refactor snippet edit

Created setupSnippetForm to eventually create new forms, rather than
use a precooked form. This will be nice in that the full-screen modal
window won’t be needed, as each edited snippet will have its own
snippetForm.