Move io into stdio.rs
Remove lidt from loader
Finish moving stdio code