Add read(), write(), read_once(), and write_once() for I/O vectors.

Signed-off-by: Eddie Kohler <ekohler@gmail.com>