hdfs read support, and generalized runTcp to MonadIO