Gasification using molten salts or metals