Ensure that a widget eligible for postMessage gets transport set before made dirty

There was a problem where newly-added widgets were causing a refresh when they got marked as dirty.
Remove unused vars and comments
Merge pull request #6 from xwp/feature/postmessage-before-dirty

Ensure that a widget eligible for postMessage gets transport set before made dirty