patchutil: move AsDiff and AsNiceDiff to patchutil
Also move FormatPatch to types to avoid an import cycle.
authored by Anirudh Oppiliappan and committed by Tangled 9 months ago 74b9d52b df75814b