integration test fixes
Fixed NPE
Reset update context before reattempt
re-enabled business check disabled during rdp migration (seems legit now)
updated TODO following investigation
Fail update when there is an identical update pending with same authentication
fixed VM variables bleeding through in case of early error in updates, when action is not decided yet
Updated pending update tests - use syncupdates to setup scenario, not databaseHelper.
Changed deferred authentication to pending authentication to have consistent naming
Move PendingUpdate to commons so that is can be used from DatabaseHelper
Cleanup pending updates tables after each test run
Simplify inserting pending updates in tests
Remove pending update specific methods from DatabaseHelper
pending updates - notifications for when update is stored as pending
added TODO for completing pending updates
Extract formatting of messages to show errors as infos in case of pending auth
Fix one e2e test with pending authentication
Added some review comments
Properly print global messages in ack responses
Merge branch 'upstream'

* upstream:
  Properly print global messages in ack responses
  Added some review comments
  Fix one e2e test with pending authentication
  Extract formatting of messages to show errors as infos in case of pending auth
  added TODO for completing pending updates
  pending updates - notifications for when update is stored as pending
  Remove pending update specific methods from DatabaseHelper
  Simplify inserting pending updates in tests
  Cleanup pending updates tables after each test run
  Move PendingUpdate to commons so that is can be used from DatabaseHelper
  Changed deferred authentication to pending authentication to have consistent naming
  Updated pending update tests - use syncupdates to setup scenario, not databaseHelper.
  fixed VM variables bleeding through in case of early error in updates, when action is not decided yet
  Fail update when there is an identical update pending with same authentication
  updated TODO following investigation
  re-enabled business check disabled during rdp migration (seems legit now)
  Reset update context before reattempt
  Fixed NPE
  integration test fixes