Stage 54 — PWA Background Sync Foundation

Adds a safe Background Sync foundation for the public PWA shell.

Important security boundary:
- No API responses are cached.
- No private application pages are cached.
- No authentication tokens or passwords are queued.
- Background Sync only refreshes the public PWA shell.

Test: /upgrade/stage54.php
