Remove window reference from core
Fix: HTTP depends on Events