Fixes to Log Zip/Rewrite of Offline Logs

Lots of changes.