This MR adds GetPatchID RPC that allows us to get the patch-id for a patch. It can be used to compare diffs to see if they are the same or not by comparing its patch-id.
Closes #4612 (closed)