Do not create an applet element during startup

By creating an applet element IE shows a user prompt.
Merge pull request #336 from arv/applet-element-ie

Do not create an applet element during startup
Dispatch native events at all times

If there are no listeners in a disconnected tree we add a temporary
listener on the target which allows us to take over later in the
process.

Fixes #335
Update support for CustomElements: change document.register to document.registerElement; entered/leftViewCallbacks to attached/detachedCallbacks
Merge pull request #339 from sorvell/master

Update support for CustomElements to use document.registerElement
Fix issue with getElementById
Merge pull request #341 from arv/get-element-by-id

Fix issue with getElementById
Fix issue with SVGElementInstance
Blacklist keyLocation from all Events
Merge pull request #343 from arv/svg-element-instance

Fix issue with SVGElementInstance
Merge pull request #344 from arv/blacklist-key-location

Blacklist keyLocation from all Events
Safari 6 returns null for SVGUseElement.prototype.instanceRoot

Add guards to the tests.
Merge pull request #345 from arv/guard-svg-element-instance-test

Safari 6 returns null for SVGUseElement.prototype.instanceRoot
Make Node.textContent ignore comment nodes

Currently it is incorrectly including the text from comment nodes in generating textContent.
Fix issues with innerHTML in plaintext like elements

This also cleans up innerHTML escaping for attributes, text nodes
and comments.
Merge pull request #346 from blois/fix_textContent

Make Node.textContent ignore comment nodes
Fix issue with Element not having all the required properties
Merge pull request #350 from arv/svg-tag-name

Fix issue with Element not having all the required properties
Fix element issue again
Merge pull request #351 from arv/fix-element-again

Fix element issue again