Renamed output zip file; use apps cache dir; delete file once uploaded.
Better error handling and file/stream cleanup.

Change-Id: I5176e2ab8086694d8c50feeee729204e5e8179fc