Adding method to check if apk has internet permission

- Method to check if internet permission is present
- It will be used when selendroid it is started as it is requirement for selendroid to work
- [#3146] (https://github.com/appium/appium/issues/3146)