Skeleton for ThreadsLib, and some support for passing an interpreter ref to called native functions
Created the ThreadManager to keep track of which threads are executing Classic code and manage critical sections
Implemented some functions in ThreadsLib using the threads manager