Add support for an object in the class attribute

[closes #1610]
Add support for an object in the style attribute
Document the object form of `class` and `style` attributes
Merge pull request #1704 from jadejs/object-classes

Object classes and styles