Factor out spi_channel, and start to convert everything to using pre-allocated buffers.