can i suggest, this topic is about what to change.... rather than how to implement it.
Id leave implementation decisions to the the implementor, we all know about HTML/CSS/XML ... and we are pretty familiar with graphical environments (including Quartz Composer)
now... if you want to get into implementation, and start developing the code, fantastic... then we will definitely be happy to discuss with you options for implementations.. not in this topic, but in the developer category or github issues.
(honestly, the reason for not doing this stuff as yet, is not, not knowing how to do it, its about time and resourcess)