Added debug information around shotgun api calls if required
Fixed bug with commit_all()