fix(kernel): remove ios hack

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
refactor(kernel/io_state): move io_state_stream to library

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
refactor(kernel): move printer to library, cleanup io_state interface

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
refactor(kernel): move printer to library, cleanup io_state interface