restructuring and impelmentation of zip file writer

introduces some functions to write a ZipRecord to a file(blob. No compression and no file packing features at the moment.