spi-transfer: Add SPI transfer helper routines
These routines assume that any messages is composed of a write and/or read part. While the API allows sending and receiving as part of one messages/transfer, it does not permit full dulex operation where data is both send and received at the same time.
Suggestions for API changes are welcome of course.
Edited by Benjamin Berg