Add applicationWillTerminate to CCApplicationProtocol

I added the applicationWillTerminate method to CCApplicationProtocol for completeness. I use it in my games to upload any final analytics before the apps close so it would be great to add this to the cocos2dx source.