btw: this results in a white page on the first load until you manually reload, since the SW has not been loaded yet. May want to force a page reload on the SW install event to fix.
also: this is incredibly cool. thanks for writing this up and sharing!