Thermal energy, electricity, and transportation fuels from wood