[WIP] implement a service worker to allow assets to be loaded offline (bug 1084546)

https://bugzilla.mozilla.org/show_bug.cgi?id=1084546