Replace onBeforeNavigate with onLoading, since this apperently what we actually need here.

--HG--
extra : amend_source : bdc4f6bd32c2f0ee83b43d4743e5cea83b3e0768
Bind require() from background page to options page.