Added 'resign' and 'active' events.
Added 'resign' and 'active' events.

I added two new events because applicationWillResignActive and
applicationDidBecomeActive were not firing events the way
applicationDidEnterBackground (pause) and
applicationWillEnterForeground (resume) were. This was fine in the case
of applicationWillEnterForeground (resume) but
applicationDidEnterBackground (pause) was not able to get the event
back to the JavaScript side before the app went into the background.
See
http://stackoverflow.com/questions/8223020/pause-event-is-not-working-pr
operly-in-phonegap-iphone/8224125#comment10128466_8224125

This meant the event was essentially not firing until the app resumed
again. The method applicationWillResignActive (resign) occurs earlier
in the event chain so your PhoneGap app has a chance to turn off
timers, etc. The only downside is that this event is also fired when
the screen is locked even if your app is not truly in the background.

juliascript/cordova-ios,revolunet/cordova-ios,ludei/cordova-ios,juliascript/cordova-ios,SidneyS/cordova-ios,beedesk/cordova-ios,tripodsan/cordova-ios,i-miss-you/cordova-ios,csantanapr/cordova-ios,theaccordance/cordova-ios,matrosovN/cordova-ios,coderReview/cordova-ios,xurigan/cordova-ios,codepython/cordova-ios,EddyVerbruggen/cordova-ios,beedesk/cordova-ios,SidneyS/cordova-ios,lvrookie/cordova-ios,damoncoo/cordova-ios,i-miss-you/cordova-ios,purplecabbage/cordova-ios,binki/cordova-ios,purplecabbage/cordova-ios,ipmobiletech/cordova-ios,Icenium/cordova-ios,Tomikes/cordova-ios,revolunet/cordova-ios,damoncoo/cordova-ios,ludei/cordova-ios,fly19890211/cordova-ios,zhuli8com/cordova-ios,goff-marocchi/cordova-ios,Icenium/cordova-ios,xurigan/cordova-ios,matrosovN/cordova-ios,dpogue/cordova-ios,Icenium/cordova-ios,dpogue/cordova-ios,zhuli8com/cordova-ios,LonnyGomes/cordova-ios,adobe-marketing-cloud-mobile/aemm-ios,revolunet/cordova-ios,ludei/cordova-ios,fly19890211/cordova-ios,ephemer/cordova-ios,goff-marocchi/cordova-ios,theaccordance/cordova-ios,goff-marocchi/cordova-ios,coderReview/cordova-ios,purplecabbage/cordova-ios,tripodsan/cordova-ios,zhuli8com/cordova-ios,apache/cordova-ios,LonnyGomes/cordova-ios,corimf/cordova-ios,EddyVerbruggen/cordova-ios,honger05/cordova-ios,binki/cordova-ios,1yvT0s/cordova-ios,xandroidx/cordova-ios,csantanapr/cordova-ios,Tomikes/cordova-ios,adobe-marketing-cloud-mobile/aemm-ios,SyedMdKamruzzaman/cordova-ios,masakura/cordova-ios,pengleelove/cordova-ios,i-miss-you/cordova-ios,1yvT0s/cordova-ios,csantanapr/cordova-ios,corimf/cordova-ios,codepython/cordova-ios,juliascript/cordova-ios,Newstex/cordova-ios,ipmobiletech/cordova-ios,binki/cordova-ios,coderReview/cordova-ios,codepython/cordova-ios,beedesk/cordova-ios,fly19890211/cordova-ios,masakura/cordova-ios,liubiqu/cordova-ios,Newstex/cordova-ios,sportstech/cordova-ios,damoncoo/cordova-ios,honger05/cordova-ios,theaccordance/cordova-ios,ephemer/cordova-ios,purplecabbage/cordova-ios,beedesk/cordova-ios,Tomikes/cordova-ios,Tomikes/cordova-ios,shazron/cordova-ios,masakura/cordova-ios,hgl888/cordova-ios,Tomikes/cordova-ios,sportstech/cordova-ios,hgl888/cordova-ios,EddyVerbruggen/cordova-ios,matrosovN/cordova-ios,tripodsan/cordova-ios,revolunet/cordova-ios,beedesk/cordova-ios,liubiqu/cordova-ios,apache/cordova-ios,1yvT0s/cordova-ios,damoncoo/cordova-ios,adobe-marketing-cloud-mobile/aemm-ios,juliascript/cordova-ios,LonnyGomes/cordova-ios,codepython/cordova-ios,i-miss-you/cordova-ios,ipmobiletech/cordova-ios,apache/cordova-ios,coderReview/cordova-ios,juliascript/cordova-ios,tripodsan/cordova-ios,adobe-marketing-cloud-mobile/aemm-ios,ludei/cordova-ios,Newstex/cordova-ios,apache/cordova-ios,SyedMdKamruzzaman/cordova-ios,theaccordance/cordova-ios,pengleelove/cordova-ios,SidneyS/cordova-ios,sportstech/cordova-ios,SidneyS/cordova-ios,lvrookie/cordova-ios,tripodsan/cordova-ios,pengleelove/cordova-ios,theaccordance/cordova-ios,Icenium/cordova-ios,LonnyGomes/cordova-ios,1yvT0s/cordova-ios,xandroidx/cordova-ios,adobe-marketing-cloud-mobile/aemm-ios,xandroidx/cordova-ios,xandroidx/cordova-ios,1yvT0s/cordova-ios,dpogue/cordova-ios,Newstex/cordova-ios,apache/cordova-ios,xurigan/cordova-ios,masakura/cordova-ios,xandroidx/cordova-ios,EddyVerbruggen/cordova-ios,goff-marocchi/cordova-ios,pengleelove/cordova-ios,binki/cordova-ios,ephemer/cordova-ios,fly19890211/cordova-ios,codepython/cordova-ios,ipmobiletech/cordova-ios,dpogue/cordova-ios,hgl888/cordova-ios,lvrookie/cordova-ios,LonnyGomes/cordova-ios,goff-marocchi/cordova-ios,liubiqu/cordova-ios,masakura/cordova-ios,xurigan/cordova-ios,ephemer/cordova-ios,lvrookie/cordova-ios,SyedMdKamruzzaman/cordova-ios,apache/cordova-ios,shazron/cordova-ios,zhuli8com/cordova-ios,hgl888/cordova-ios,liubiqu/cordova-ios,SyedMdKamruzzaman/cordova-ios,SidneyS/cordova-ios,pengleelove/cordova-ios,honger05/cordova-ios,SyedMdKamruzzaman/cordova-ios,coderReview/cordova-ios,sportstech/cordova-ios,fly19890211/cordova-ios,honger05/cordova-ios,matrosovN/cordova-ios,hgl888/cordova-ios,shazron/cordova-ios,shazron/cordova-ios,sportstech/cordova-ios,matrosovN/cordova-ios,corimf/cordova-ios,zhuli8com/cordova-ios,honger05/cordova-ios,corimf/cordova-ios,revolunet/cordova-ios,dpogue/cordova-ios,ipmobiletech/cordova-ios,shazron/cordova-ios,dpogue/cordova-ios,i-miss-you/cordova-ios,csantanapr/cordova-ios,shazron/cordova-ios,apache/cordova-ios,ephemer/cordova-ios,juliascript/cordova-ios,csantanapr/cordova-ios,binki/cordova-ios,purplecabbage/cordova-ios,EddyVerbruggen/cordova-ios,purplecabbage/cordova-ios,ludei/cordova-ios,corimf/cordova-ios,lvrookie/cordova-ios,damoncoo/cordova-ios,sportstech/cordova-ios,matrosovN/cordova-ios,Newstex/cordova-ios,liubiqu/cordova-ios,xurigan/cordova-ios