Handle className properly on SVG nodes

This strategy avoids a runtime check for every set (as opposed to using a mutation method).

Test Plan: Verify that changing className works on a div and a rect in latest Chrome, latest Firefox, IE9. Verify that the div works in IE8.
Merge pull request #1590 from spicyj/svg-classname

Handle className properly on SVG nodes