Initial check in of threading helper classes. Includes concrete
semaphore permits for specialized situations.