Apply DOM changes in onProtectedSetup and onProtectedTeardown instead of constructor

It's important in case of replacing root element ($) of a node, so new element
does have CSS class and contenteditable property set.




Change-Id: Icf14e2164e89114e6b7c10672b782d02f4c5daac
Merge "Apply DOM changes in onProtectedSetup and onProtectedTeardown instead of constructor"