utils/stdcopy: fix bug for small amount of output
container: fix Logs behavior

Docker sends the output in the following format:

	<header identifying the stream and with the size fo the frame>
	<frame>

It allows us to multiplex the content between the output and error
streams.

I wondering whether I should rewrite the StdCopy function, it's a little
messy.

Related to #114.