Rename file 'input' to 'io'
Replace all use of printf with io_write
Fix segfault when running MESSAGES command
Write to network when reading from network