[TIMOB-11178]Implementation for Autopause API.

__Testing Instruction__

 ** Make an app with the following code [app.js](https://jira.appcelerator.org/browse/TIMOB-11178?focusedCommentId=222599&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-222599)
** By default i have set the autopause to be false.

__TEST 1__
** Put the app in background .
** Move around for a bit and ensure you receive location update
** Now put the phone on the table and leave it for a while(say 20-30 to be sure) 
** Verify that location update __paused is not__ fired.

__TEST 2__

** Open the same app.
** Switch the puaseLocationUpdatesAutomatically to true(0N)
** Put the app in background.
** Move around for a bit and ensure you receive location update
** Now put the phone on the table and leave it for a while(say 20-30 to be sure).
** Verify that location update __paused__ __is__  fired.
** Once the location paused event is fired. Pick up the phone and move around.
** Ensure that the location update resumed event is fired and the app continues to receive location updates.

If there is any confusion while testing let me know.