[IDE 1.0.x (backport from 1.5.x)] SPI Transactions

Backported SPI Transaction API from IDE 1.5.x.

This pull request includes fix to:
- SPI
- Ethernet
- SD