This class manages common facilities for mutithreading environments, It can
register different facilities for each thread, and also a default one, so
that they can be referred by static methods, while possibly having
different ones for different threads.