Provide build tar stream for user

This does not handle the `X-Registry-Config` header yet.  I will submit a follow up pull request for that.

TODO:
- [x] add some tests
Is this file copied from Docker?