Fixes full paths on Android (cleaner)

If one adds a search resolutions order directory without a trailing slash, CCFileUtils::getFullPathForDirectoryAndFilename will fail on Android. For example it will return:

assets/sdBg1.png

Instead of the expected:

assets/sd/Bg1.png

This small commit fixes the function to add a slash if necessary, fixing the issue on Android.

Compared to the last pull request of this name, formatting matches the style of code around it and comments have been added.
Merge pull request #3472 from dumganhar/develop

Adding a new search path 'res' for TestJavascript project and updating bindings-generator to the latest version.
[AUTO] : updating submodule reference to latest autogenerated bindings
Merge pull request #3473 from CocosRobot/updategeneratedsubmodule_1377245073

[ci skip][AUTO] : updating submodule reference to latest autogenerated bindings
Adds "Sort all Children" perf test

Adds a new perf tests: "sortAllChildren"

Signed-off-by: Ricardo Quesada <ricardoquesada@gmail.com>
Uses std::sort()

Uses std::sort() for inserting the nodes.

This code is not final, but preliminary results show that std::sort() is 60% faster

Signed-off-by: Ricardo Quesada <ricardoquesada@gmail.com>
Adds missing include
Merge pull request #3475 from ricardoquesada/perf_fixes

Adds "Sort all Children" perf test
Merge pull request #3447 from NatWeiss/patch-5

Fixes full paths on Android (cleaner)