Support streams that write last chunk with end()
Merge pull request #14 from tonistiigi/endchunk

Support streams that write last chunk with end()