Minor refactor io into own module.

Preparing for structured model export in nefio module.