Build mend, one patch tool for every AI edit format

@vivid-robin-90-8390

mend: four formats, three tiers, all-or-nothing, Sent through the API