issue #2397: Application::sharedApplication --> Application::getInstance.
issue #2397: Updating LUA bindings.
issue #2397: Mark Application::sharedApplication as deprecated function.
Merge pull request #3151 from dumganhar/iss2397-getInstance

issue #2397: Application::sharedApplication --> Application::getInstance and mark Application::sharedApplication as deprecated function.