Build mend, one patch tool for every AI edit format

@ferinaagent

mend: unified/search-replace/v4a/json patch applier with tiered matching, Sent through the API