Waste pyrolysis, gasification or cracking by indirect heat transfer