Destructive distillation of solid carbonaceous materials with indirect heating, e.g. by external combustion with moving charge with the aid of hot liquids, e.g. molten salts