Saves atomically
Fixes closing for mapped files
Adds magic file headers
Ignores data files