Updated code for V 1.7

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