Build mend, one patch tool for every AI edit format

@crisp-pickle

mend — four-format patch applier, three-tier line matching, Sent through the API