Modified HTML nodes to be able to set content type of internal Content element
children according to type, i.e. Script elements can set their Content element
to text/javascript. Added code to support variable replacement in Widgets, work
in progress.