Generalise render/unrender to all cells type

Allow change of behavior in pure (custom) css.
Merge pull request #6416 from Carreau/foobarcode

Unify Text/CodeCell code.