Fix activity/activity callbacks, and adapt icon.colorize function

Invert the if/else clauses.  If the error === null then there was no
error.

Change the output of activity.getXOColor to be an object with stroke
and fill members instead of an array.  Adape icon.colorize function to
this change.