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