Check origin of the message received
Remove obsolete TODOs
Specify postMessage target origin
Rename message type