Extract colour support to helper

Colour code lookup is now implemented in a seperate module.
support extracted color codes in legacy formatters
Changelog for #1377
[skip ci]
docs for console codes
[skip ci]