Allow pre-setting snippet values from URL

This allows pre-setting snippet values from edit URL.
(my use case: pre-fill mirrored snippets that are created with no content).

Note that `attributes=` merges attributes (despite what `=` might suggest)
(cherry picked from commit cad18890e5f4ac29e3bfa5d7cb770b699ab129d7)
cleaning up a bit