add support for node.js to act as a socket client
updated library_sockfs.js to make WebSocket a local var and updated library_browser.js to modify requestAnimationFrame to provide a fallback to setTimeout if window is undefined
Fix SDL_SetColors && SDL_envets
replace window.WebSocket with window['WebSocket'] to avoid closure compiler issues
moved nodejs client test case into main sockets test class as requested. Run with ./runner.py sockets.test_nodejs_sockets_echo
[em++]: Removed unnecessary warning about the PYTHON variable ;
Give names to most manually assigned functions in the .js files, in form "var x = function()" -> "function x()" so that error stack traces and profiling stack traces are more informative and do not contain anonymous functions.
Removed RunnerCore import as no longer needed and added return self.skip('node is not present') to test_nodejs_sockets_echo if node isn't available
Merge pull request #1735 from juj/name_js_functions

Name js functions.
add missing parens for select mathop
add testcase for select fix
pthread_mutexattr_setpshared stub
fake dladdr
Fix dependencies on DNS
support ASM_JS=2 not just in test runner, and remove some unneeded uses in test suite
handle errors in ioctl
stub for pthread_rwlock_init
use __proto__ when available for new streams, otherwise do a full copy; fixes #1759, #1760
[library_glut.js]: Handle DELETE & BACKSPACE correctly ;
[thirdparty/lzma.js]: Fixed doit.sh so that it compiles on Windows using MingW's GCC & Bash ;