Add optional callback to asar.createPackage & disk.writeFilesystem

This allows us to create packages programatically.