output: refactor terse formatting into a single function
output: new state output 'changes'

It displays states result in 'full' mode unless nothing changed, in
which case it displays results in 'terse' mode.
Merge pull request #5581 from multani/new-output-changes

New output changes