Biomass conversion to carbon adsorbents and gas