changed behavior for non-xml mode

• lowercase tag and attribute names by default
• CDATA is now emitted as a comment (fixes tmpvar/jsdom#618)
[tests/events] updated tests to reflect latest changes
3.1.0