iosched: break out io scheduling functions from xutils

Break this stuff out, for better maintainability and readability.

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>