Add write Mekle tree to file.
Add test of a direct file sync.