Add newlines to the JSON stream functions

This makes the JSON streams a _lot_ easier to parse in less well-baked JSON parsers, and no less so in better ones.

Line-based JSON streams are very, very common, where simply chunk-based is not very common at all.

Docker-DCO-1.1-Signed-off-by: Andrew Page <admwiggin@gmail.com> (github: tianon)
registry: Added simple checksums (sha256) for layers

Docker-DCO-1.1-Signed-off-by: Sam Alba <sam@docker.com> (github: samalba)
registry: Fixed tests

Docker-DCO-1.1-Signed-off-by: Sam Alba <sam@docker.com> (github: samalba)
registry: Removed checksumPayload from exported fields

Docker-DCO-1.1-Signed-off-by: Sam Alba <sam@docker.com> (github: samalba)
registry: Fixed unexported field

Docker-DCO-1.1-Signed-off-by: Sam Alba <sam.alba@gmail.com> (github: samalba)
Fixed typo in Dockerfile example

Docker-DCO-1.1-Signed-off-by: Rob Cannon <rpcann@gmail.com> (github: robpc)

The 'true' command is located in /bin not /usr/bin in the busybox image.
Merge pull request #4297 from dotcloud/add-simple-checksum

registry: Added simple checksums (sha256) for layers
Merge pull request #4276 from tianon/json-stream-newlines

Add newlines to the JSON stream functions
Some distributions no longer include MAKEDEV script.  Stole this from mkimage-rinse.sh.
Docker-DCO-1.1-Signed-off-by: Tim Bosse <taim@bosboot.org> (github: maztaim)
Use a more defensive vendored archive/tar import path to make it clear this isn't upstream's released archive/tar

Docker-DCO-1.1-Signed-off-by: Andrew Page <admwiggin@gmail.com> (github: tianon)
Merge pull request #4365 from maztaim/master

Use mknod instead of MAKEDEV in mkimage-yum.sh
Merge pull request #4318 from robpc/patch-1

Fixed typo in Dockerfile example
Merge pull request #4369 from tianon/better-archive-tar-vendor-import-path

Use a more defensive vendored archive/tar import path to make it clear this isn't upstream's released archive/tar
split listen and serve

Docker-DCO-1.1-Signed-off-by: Victor Vieux <victor.vieux@docker.com> (github: vieux)
add socket to privileged containers

Docker-DCO-1.1-Signed-off-by: Victor Vieux <victor.vieux@docker.com> (github: vieux)