Build mend, one patch tool for every AI edit format

@lavilleee

mend: three-tier patch applier for four edit formats, Sent through the API