In config.xml, set up the Intent receiver like this:
Set up dom injection in config.xml like this:
content of myTags.txt below. This will inject these 4 javacscript files into every page that EB navigates to:
Content of eb-exit.js below. This sets up the intent API to start listening and the callback will quit EB if EB receives the intent it is looking for.
If the above is all configured properly, you should see EB exit if you send a broadcast intent with the action "Intent.QUITEB".