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.
Merge pull request #5 from xwp/feature/postmessage-before-dirty

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