Add network connection methods

added network connection methods for appium 1.2.
fixed 41