Main menu from test is sorted alphabetically

Code was refactored. Now it is super easy to add a new test.
No need to add it in 3 different places
Merge branch 'develop' into testmenu_sorted
adds mising tests + cosmetic changes
Merge branch 'develop' into testmenu_sorted
It was using an clang extension for tuples<>

Instead of converting it to pairs<>, which is compatible with gcc,
I converted it to C structs.
Merge pull request #2744 from ricardoquesada/testmenu_sorted

Testmenu sorted
cc_timeval works on 64bit machines, like OS X
Adds C++11 std::function<> support to MenuItem

Updates some of the tests
compiles on linux and other machines without C99 support
Merge branch 'develop' of https://github.com/cocos2d/cocos2d-x into develop
Adds setObject to CCConfiguration

also adds the test

Conflicts:
	scripting/javascript/bindings/generated
Minor fix in CCConfiguration.
Merge pull request #2758 from dumganhar/ricardoquesada-configuration_set_value-develop

Merge PR #2728 and minor fix.[develop]
issue #2254 : Add plugin weibo for iOS.
fixed #2254 : Add sample code for plugin weibo on iOS.
Update the JS binding code of plugin.
Merge branch 'develop' of https://github.com/cocos2d/cocos2d-x into develop
Update the license in the sample code.
Merge pull request #2760 from natural-law/develop

Add plugin weibo for iOS on branch develop
issue #2143: Adding CCEditBox::getDelegate.