setAttribute should actually set the attribute on the element.
allowAppendChild to support mxtElement as a parameter.
Also, add handy addClass method.
add useful general method getMxtFromElement