issue #1581: JSBinding bug fixes.
Some fixes of JSBinding codes:
[1] Check whether the proxy was already added in JS_NEW_PROXY
[2] In struct schedFunc_proxy_t, JSScheduleWrapper* --> CCArray*
Reason: One js function may correspond to many targets. To debug this, you could refer to JSScheduleWrapper::dump function. It will prove that i'm right. :)
[3] In ScriptingCore::cleanupSchedulesAndActions function, we must invoke unschedule for all targets and remove the proxy both in _schedFunc_target_ht and _schedTarget_native_ht, otherwise the hash tables will grow bigger and bigger, so I added a new function JSScheduleWrapper::removeAllTargetsForNatiaveNode to make this things easier.
[4] To easily find out the bugs of binding codes, I add JS_SetGCZeal in ScriptingCore::createGlobalContext, it only works in DEBUG mode.
[5] In js_cocos2dx_CCNode_getChildren, we should add the generated array to root to avoid gc happen when invoking JS_SetElement.
[6] The JSCallFuncWrapper isn't needed since an action will be run by a cc.Node and it will be released at the CCNode::cleanup.
[7] Some improvements of JSScheduleWrapper class.
[8] Added a new function JSScheduleWrapper::setTarget, it's for js_CCNode_unschedule to find out which target need to be unscheduled.
[9] Commented JS_SetReservedSlot in js_CCNode_scheduleOnce and js_CCNode_schedule.
Reason:
For js_CCNode_scheduleOnce: Don't add the callback function to the reserved slot of this js object.Since the class of js object may be inherited from cocos class(e.g. cc.Sprite). The subclass will not contain reserved slots. It will crash if invoking this.
For js_CCNode_schedule: Don't add js callback function to the reserved slot of scheduler js object. Since the scheduler is an object always rooted.
So the callback function might not be released when gc comes.I looked inside the implementation of cc.Node.schedule, and it doesn't use JS_SetReservedSlot there.
issue #1581: Removed some unused codes.
issue #1581: Deleted JS_AddObjectRoot when construct a JS array since JS_SetElement will not trigger a GC.
issue #1583: Updated the submodule reference of cocos2d-js-tests.
issue #1583: Moved the common js codes to scripting/javascript/bindings/js folder. Deleted the old js sample resources.
Temporary commit.
Updated jsb_constants_chipmunk.js and jsb_constants_cocosbuilder.js.
Using the Minggo's repo of cocos2d-js-tests.
Updated the submodule cocos2d-js-tests.
Merge branch 'gles20' into iss1583-js-tests
issue #1583: TestJavascript works ok on win32.
Merge pull request #1681 from minggo/gles20

change accelerometer accurate to SENSOR_DELAY_GAME
Suffix check.
Updated cocos2d-js-tests reference.
issue #1583:MoonWarriors and CocosDragon work ok on iOS
Merge pull request #5 from minggo/iss1583-update-js

issue #1583:MoonWarriors and CocosDragon work ok on iOS
Merge branch 'gles20' of https://github.com/cocos2d/cocos2d-x into iss1583-update-js
Added CCTexture2D::setTexParameters binding.
Fixed pass one more argument in JSCallFuncWrapper::callbackFunc if extraData is void.
issue #1583:CocosDragonJS MoonWarriors and TestJavascript work ok on android
Merge pull request #6 from minggo/iss1583-update-js

CocosDragonJS MoonWarriors and TestJavascript work ok on Android