Propagate icon definition from library or graph

It is very useful to be able to propagate the icon definition from
library to component/node. Moreover, inports/outports icon should
be overridden by the graph def.
Fix group css color

When a group is not selected, its css class giving its background
color should range from 1 to 10.