[DF-4152] Fixed resource leak in Thread. Win32 only
[DF-4152] Intermediate commit
[DF-4152] Intermediate commit
[DF-4152] Intermediate commit
Merge branch 'thread-leak' of https://github.com/dava/dava.framework into thread-leak

Conflicts:
	Sources/Internal/Platform/ThreadWin32.cpp
[DF-4152] Added PosixThread
Merge branch 'development' into thread-leak

Conflicts:
	Sources/Internal/Job/Job.cpp
	Sources/Internal/Job/Job.h
	Sources/Internal/Job/JobManager.cpp
[DF-4558] Main changes.
[DF-4152] Safe "Yield" instead of deprecated unsafe "SwitchToThread". Removed some code duplication for pthread and android threads. Some methods renamed to use common names.
Merge branch 'development' into thread-leak

Conflicts:
	Projects/MacOSFramework/Framework.xcodeproj/project.pbxproj
	Projects/iPhoneFramework/Framework.xcodeproj/project.pbxproj
	Sources/Internal/Platform/Thread.cpp
	Sources/Internal/Platform/Thread.h
[DF-4152] A part of refactor finished for windows.
[DF-4152] Posix code moved to separate file. Little bit refactor for Thread.h and cpp.
[DF-4152] Id is unique identifier of Thread. nativeId (uint64 for now) is unique number of created Id (one for each Thread). Id generates based on platform dependent thread descriptor (HANDLE for windows, pthread_t for POSIX systems).
[DF-4152] Thread ID is simplified to uint32. Each Thread have his own unique Id (increments for each new Thread). More common logic for Thread methods. Less code placed into platform depended macros.
[DF-4152] Threads supports running already done threads (at example for simple calculations which could take all data independent from thread context). Thread IDs starts from 1 for possibility to determine not registered thread. More Thread states to determine thread cancelling and killing at user side. Native killing is not used for now. Thread running function moved to Thread.cpp and calls from platform depended code - more common code.  Pthread Join works fine. Thread methods Briefing.  UnitTest for Thread functionality.
[DF-4152] iPhone project compiles fine.
[DF-4152] iPhone project fix.
[DF-4152] Correctly killing POSIX threads. pthread_cancel() is the way. pthread_kill() just sends signal, but not kills thread. Added mechanism to ask thread to finish himself by calling Thread::Cancel();
[DF-4152] Android threads could be killed. GlThread could be registered.
[DF-4152] Adapted for windows.