title: how to port chrome extension functions to firefox extension functions
body: <p>I have a chrome extension which have code lines like:</p>
  
  <pre><code>chrome.tabs.executeScript(null, {allFrames:true, file:"myscript.js"});
  </code></pre>
  
  <p>and functions like:</p>
  
  <pre><code>chrome.extension.onRequest.addListener
  
  chrome.extension.sendRequest
  </code></pre>
  
  <p>How to make these functions to work for firefox extension?</p>
  
  <p>Also, how to achieve same functionality like communication between option(popup) page and background page ?</p>