getNetwork API added to DeviceInfo extension

Contributions by @peardox