Implemented singal and slot mechanism to communicate between the thread and pyQT4.

This is done for fiwalk and qtree thread only.