Cleanup trailing whitespaces.
Change diff to RFC style JSON-Patch syntax.