Combination of fuel cells with means for production of reactants or for treatment of residues with means for production of gaseous reactants by electrochemical means