factorize SingletonMeta metaclass
Remark: the Singleton metaclass of the Monitor class has not been integrated here... should a little discussion on monday with Sergen on how to do it properly...
but the MR should be done anyway
Edited by CANSIZ Sergen