Detect serviceWorker feature when registering.
Merge remote-tracking branch 'origin/sw' into sw