Moved globals into static 'Environment' class. WebWorker now inherits from NodeThreads.