Refactored; input/output formatter now called directly

TextInputFormat and TextOutputFormat are now directly called from
hdemu. They were spawned as separate processes before.