Checks for an update. If an update is available, executes onUpdateNeeded with the new version and changelog.