Clean up examples
Clean up examples

- destructure for clarity
- break lines
- explicit InstallEvent handler
- do observer setup in a promise and resolve once the callback has fired once
bsittler/async-cookies-api,bsittler/async-cookies-api