TIMOB-15094-Added support for app 'pause' and 'resume' events

https://jira.appcelerator.org/browse/TIMOB-15094
Added support for app 'pause' and 'resume' events
This is not a solid condition. Check the doc https://developer.android.com/reference/android/content/ComponentCallbacks2.html#onTrimMemory(int) .
1. When the app goes to background, onTrimMemory is not guaranteed to be called.
2. "You should never compare to exact values of the level, since new intermediate values may be added"