Base: Remove last window globals

Wrapping the app inside an IIFE is now possible (and working) however
makes debugging more difficult without exposing functions. For now,
this won’t be done but hopefully soon.