Cope with trailing zeroes in journal and segment files

Makes the on-disk journal format tolerant of runs of zeroes at the end of the file.
This could occur if file operations are interrupted by a crashing server.

Also changes the definition of segment prefixes so that runs of zero bytes will
never appear in a valid segment.
Implement feedback
Merge bug25390