Fix issues with innerHTML in plaintext like elements

This also cleans up innerHTML escaping for attributes, text nodes
and comments.
Merge pull request #348 from arv/script-inner-html

Fix issues with innerHTML in plaintext like elements