Reuse code in Refactor widget.

Reuse new functions implemented in BasicRefactoring class.
Also clean up code a little bit.

REVIEW: 115384
Move Refactoring progress dialog to kdevplatform.
Dont propose dirs in the missing-include assistant