Support for network connection status

Created a BroadcastReceiver for connectivity status; whenever a new
HttpClient is created the connection is checked first.
Merge remote-tracking branch 'upstream/master'