WebExtensions: Generate background page if needed
If only scripts are listed we simply generate a background page including those scripts. This exactly matches Firefox's behavior.
This simplifies the web view creation and usage since it only has a single codepath.