Updated code for V1.7

Added inventory support to product upload package and fixed an issue
where later parts of upload fails when images / docs upload fails