Implement IO threads.

This doesn't quite work. There's some kind of internal FFADO error
happening. We're probably setting some parameter incorrectly.