Minimal viable service worker

Implementing a minimum viable service worker. Very nice post by @adactio!

https://adactio.com/journal/13540