Qt compatibility enablers

Workarounds for lack of global namespace, websockets and window object
in QML JS