add classes, hasClass, addClass, removeClass, toggleClass functions to Element
avoid unintentional global variables
trim class attribute whitespace
toggleClass returns the svg instance
Merge pull request #200 from pklingem/master

add class manipulation functions to Element