final colors.json

Correct all transform results if they push out of the valid colorspace
before next transform. Added 'color_format' config option to define
colors.json output format.