refactor(footer): remove amazon affiliate code
refactor(footer): ensure debug buttons only show in development
fix(footer): ensure window.env is accessible from static pages, so we
can get deferred scripts on frontpage (esp google analytics)