adjust std:function support 10 parameter
Merge pull request #3998 from Dhilan007/0001

adjust std:function support 10 parameter
Remove event controller codes from Layer class. HelloCpp works.
Adding onEnterHook, onXXXHook for Node.
Refactor event dispatcher. Remove non-node relative member variables.
Event Dispatcher refactor commit. TestCpp could run.
Use eventDispatcher to dispatch event. Remove controller codes in Layer.
bug fix in EventDispatcher.
Update menu test.
Updating jsb.
fix crash.
bug fix for EventDispatcher.