support for multiplexing log streaming in api v1.6

http://docs.docker.io/en/latest/api/docker_remote_api_v1.6/#attach-to-a-container
added tests and fixed multiplexing log streaming.