Added utils module
Moved colors converting funcs to utils module
Condensed cairo color setters callers
Corrected colors defs in json
refs #857