Combination of fuel cells with means for production of reactants or for treatment of residues with means for production of gaseous reactants from carbon-containing material {in a modular combined reactor/fuel cell structure}