Pyrolysis based processing of biomass and shale gas resources to fuels and chemicals