fix CCConsole crashed on windows, windows use send/recv(winsock) instead of read/write in unix to do socket i/o, create socketWrite/socketRead to wrap socket i/o function
merge upstream/develop
use send/recv to replace write/read
use closeSocket() on windows
remove early cleanup
fix compile on windows
use closesocket insteadof close on windows
Merge remote-tracking branch 'upstream/develop' into fix-console-windows-crash
remove unused declare
replace write() with send()
compilation error fix for win32.
Merge pull request #5455 from dumganhar/vs-fix

compilation error fix for win32.
 uncomment the pause() and resume() method call in test-js
fixed #3801. uncomment pasue&resume logic when applicationDidBecomeActive and applicationWillResignActive
fixed #3829. change namespace gui to ui
change script bindings code
fix jsb munaul bindings error
fix lua bindings error
rollback gui  filename change
Merge pull request #5449 from andyque/fixbug3829

closed #3829: change namespace gui to ui