Storage format upgrade.

Add code to add and read metadata from data files.