Small performance fix in DiskJournalIOUtils::writeRecord and moved some
of the more general helper classes to util package