Updating cache polyfill & splitting sw file up

This appears to be working.

I made sw.js just an importScripts, because imported scripts appear non-blank in devtools :D
This may explain why I struggled :-)