More work on the I/O bits
And that.
IO bit parts and moved some stuff around.
Moved some stuff around, made the IO bits functional. Rotation is
currently broken.
Fixed the rotation mess.