Merge pull request #4007 from dumganhar/update-project

[JSB] Fixing compilation errors for iOS and Mac projects.
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.
crash and memory leak fix.
bug fix for eventdispatcher.
memoryleak fix.
Small fix for Bug-422.cpp and MenuTest.cpp.
Update physicsTest.
PhysicsTest update.
disable DUMP_LISTENER_ITEM_PRIORITY_INFO. use std::unordered_map instead of std::map.
Use integer as event type and listener type.
[Dispatcher] Removing unused codes.