Move MakeFileResolver into DAIM.

That way it can be reused by kdev-clang

REVIEW: 119328
Make the kdev_makefileresolver debug tool work.
Add a simple test for CustomMake. Also add missing file.
Fix unit test.

Guess it's ok to call includesInBackground from main thread,
though it's not a good idea at all.