add support for svg templates

This patch takes a similar approach to semantic templates (and has similar pitfalls): The svg template is removed, replaced with a html template and it's children are lifted into the html template's children.

R=arv
BUG=

Review URL: https://codereview.appspot.com/52470043