Redesigned paradigm of working with threads.

Now, thread contolling is realized in the class. Maybe, i'll do special
interface for this later