Add app run model: cc::Application in foundation, cc::pal::Application in pal, main lib call initApplication and run it.