IE8 fixes: index template, bgcolor not rgb

html5shiv doesn't yet shiv <template> in its released version, so add it to the shiv ourselves.

IE8 returns bgcolor style as '#f5f5f5' rather than normalizing it to rgb, so parse that properly.

There's also a weird excanvas font problem - bold weight seems to pick some odd font. Likely a bug in VML, so ignoring.