Lazy background pages now load in response to message passing.

I refactored the pending event stuff so that it handles generic tasks. The
first enqueued task for an extension will start its lazy background page, and
tasks are run once the page finishes loading. Events and messages now share
this mechanism so that either one can activate the page.

BUG=81752
TEST=no

Review URL: https://chromiumcodereview.appspot.com/9704031

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127216 0039d316-1c4b-4281-b951-d872f2087c98
18 files changed