Logging upload cancellations

Also refactored some error code handling - converted some defines to class methods.
Changed constant name to be more accurate
Merge pull request #50 from montehurd/logUploadCancellations

Logging upload cancellations