[add-socketio-jsb] implement fireEventToScript method to integrate JSB event handling with the original native code

-update static connect method to match JS API, kept original method but marked deprecated

Signed-off-by: Chris Hannon <himynameschris@gmail.com>
Merge commit 'refs/pull/5923/head' of git://github.com/cocos2d/cocos2d-x into merge5923
tab -> 4 spaces, whitespace cleanup.
Remove unneed CC_DEPRECATED_ATTRIBUTE macro in SocketIO.cpp
Merge pull request #5939 from dumganhar/merge5923

Merge PR #5923: implement fireEventToScript method to integrate JSB event handling with the original native code