Preserve modification time on resources user adds for caching purposes

Preserve modification times on resources (e.g. images) that users add
to packages at all stages (add to package, extract and export)

Modify copyFiles routine to generate a list and then copy it to make
it suitable for unit testing on preservation of modification times