Improved Update Notification

- adding a version number to the notification
- adding a link to the upgrade docs, to make this process easier.
Restore original display after window resizing.

fixes #3597
Improve settings error handling

closes #3450
- Added no-permission error handling for settings edit API.
- In Authentication API integration test, updated the initOwnerUser
  function to insert the roles and user_roles for the owner user so the
  owner can edit settings after adding the no-permission error handling. I
  also added the mail send permission to the test since it's used after
  the user edits the settings.
Merge pull request #3451 from waleedali/issue#3450
Merge pull request #3613 from ErisDS/update-notification

Improved Update Notification
Cleaner spam prevention error messages

closes #3589

- Full error messages appear in stderr
- Clean error messages for user
Fix token refresh

no issue
- spam prevention causes token refresh to return an error
Merge pull request #3620 from ErisDS/issue-3589

Cleaner spam prevention error messages
Merge pull request #3621 from sebgie/fix-refresh-token

Fix token refresh
Version bump to 0.5.0-rc2