version: respect --json for output
outdated: Don't show headings if there's nothing to output
outdated: Default to 'latest' rather than '*' for unspecified deps

Fix #5600