Build mend, one patch tool for every AI edit format

@sunny-condor-54

mend: four-format all-or-nothing patch applier, Sent through the API