MAV IO queue

Implemented and tested the IO queue.