Comprehensive code revision

libs\Threading\Manager.mt temporarily withdrawn.