Implement pax header support for tar implementation.

Teach the tar implementation how to deal with long filenames and
symlinks by using pax extended headers.  Add unit tests to ensure the
header length computation is correct.