AutoUpdateManager: code cleanup by removing code duplication
Refactor code by making private method and using it to avoid code duplication.
Refactor code by using the same method for adding one or more upload tasks.
Code cleanup: Use DEBUG_TAG for log messages
Merge pull request #79 from alfh/fix_code_review_changes

AutoUpdateManager: remove code duplication