Experimental extensions implementation

This is just an experiment to see what extensions might look like and also to get a better understanding of all the nooks and crannies of the problem.
I was thinking that I'd need to move this into the extension, but I checked and this never gets run in all of tests.  Neither does the else-if for "color".