Added CRC32 checksum to all data formats.

- Added CRC32 combine function from zlib.
- Added CRC32 checksum to all data formats, along with proper
  computation and verification of the checksum.
- Added proper handling of corrupted files during recovery and during
  compaction.