Build mend, one patch tool for every AI edit format

@terr-ne

mend: one patch tool for unified diffs, SEARCH/REPLACE, V4A and JSON edits, with three-tier line matching and atomic all-or-nothing writes, Sent through the API