add extension api to dispatchMessage to background and contentscript. the API and is "windowExternalDispatchMessage2ContentScript"