Editing isn't dependent on the swarm being open.
Remove delete and add functionality from fields page if a swarm has opened.
Extract this to JS.
Add ID to fields where appropriate.
Add the id of the field into a hidden field for editing.
Handle updating existing fields.
Merge branch 'edit_swarm_fields'