Allow angularJS to listen and publish cross-document messages though window.postMessage API.