windows/386 stuff. use filepath.Dir (along with path.Dir for URLs) where appropriate, make SegmentKey an int64, don't die if there's no bzip2 decompressor