Moved registration of Logger::MessageType and Logger::MessageContext from ITask to Logger's constructor.