Removal of config.Config from diff package
As we are ready to get rid of the global config.Config variable this change does exact it for the files in the diff package. It also includes some small refactoring like adding a setup functions, renames, marking functions as test-helpers and replacement of the t.Fatal and t.Error(f) with require.XXX functions.
Part of: #2699 (closed)