Give sub-facts unique element IDs in add_simple_tag

This ensures find dialogs don't overwrite the wrong field value.
Switch print_editnote_link to use edit_note
Update INDI, SOUR, and NOTE names after finding a new one via find.php
Consolidate paste_*, pastename and openerpasteid implementations

pasteid is left alone for now
Remove duplicate edit_note from note.php
nameElement (and likely remElement) can be null

e.g. when assigned to by code with document.getElementById("nonexistent")
Merge pull request #118 from mnoorenberghe/edit_find_popups

Cleanup pasting from dialogs (part 1)