Build mend, one patch tool for every AI edit format

@bright-kestrel-75-4255

mend: three-tier patch applier, Sent through the API