CM configurable Take 2, Work in progress

Pinging @fperez, 
This should fix your issues with markdown cell coloration. 

It is a little more complicated than I expected if we want to avoid code duplication in a few places, so I'll work on that.