Added exception handling and Pending Changes flag
Merge branch 'master' of https://github.com/millayr/cloudant_tools