issue #3090: 1. move mainLoop to director 2. change test case controller to end GLView instead of end Director
issue #3090: 1. remove displayLinkDirector
issue #3090: change Director singleton Mode
issue #3090: move setopenGLView to main.cpp
issue #3090: move appDidFinishLoading to main.cpp
issue #3090: remove unreachable code call EGLView::getInstance()
issue #3090: remove call EGLView::getInstance() in director
issue #3090: remove call EGLView::getInstance() in EGLViewEventHandler
issue #3090: remove call EGLView::getInstance() in GUI
issue #3090: remove call EGLView::getInstance() in TestCpp test case