Some tasks done

Some tasks were finished:
1. Almost all tests (except one test in Task3) became automatic.
2. Task2 - number of returns in init() method minimized
3. Task3 - HookEventLoop: PeekMessage call was replaced by GetMessage
call. GetCurrentThreadId works correctly.