Issue #1848266 by alexpott: Convert Diff into a proper, PSR-0-compatible PHP component.