remote - OSX handling for key presses and fix in authentication in remote.html; worker_threads code from OSX