Integrated processes for treating biomass wastes. developing biorefinery concepts