logs now follows the new stream format

https://github.com/dotcloud/docker/issues/2602

A new stream format has been introduced, and this implements it.