update States Tutorial part 2

Explanation of yaml file with matching line numbers
Merge pull request #19245 from manonthemat/develop

update States Tutorial part 2
add full support for ANSI SGR escape sequences

This is for adding color to the text output salt emits in various
contexts including support for extended colors (256 and 256^3) and a few
other common text modifiers like bold, italic, underline, etc.
finally remove global, unused color declarations
add log_color option
update color name consistency