Now handles multipart messages over stdout

read() now caches input, detects multipart & EOF flags.