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
Merge pull request #2 from subbaraokv/master

Updated code for V1.7