Consolidate User-Agent helper functions into NetworkUtils class
Check whether network is available before uploading measurements
Merge pull request #117 from cpeterso/cpeterso/check-network-connectivity

 Check whether network is available before uploading measurements