Bug 1043701 - Fire statechange event on ServiceWorker instances.

--HG--
extra : rebase_source : e8b66518731aaf22ae5bc17a95ae90580dfe4c57
Handle install event listener errors and fail installation

--HG--
extra : rebase_source : b6963198d1872178d40167acd2392f521373f1d3
Remove registration when installation failure occurs. Fixes spec issue #547

--HG--
extra : rebase_source : 69df6f79b2e653af05815e37b6ca46cc50aa902c
Set ServiceWorker instances state based on corresponding ServiceWorkerInfo state.

--HG--
extra : rebase_source : e429acb9094f2ed21a4c47598ed9f8e86cd60687
Activate handler runtime errors should lead to activation failure.

--HG--
extra : rebase_source : d48462b6363c2d760316cf3f5ea7098d15af6bbc