core::rt: Clean up the interface to rtio

Make names that better match rt::io. Return error types.