Using ConnectivityManager to check for network before connecting

Registering for network change broadcasts to trigger reconnects.
Merge pull request #155 from Simperium/feature/86-network-connectivity

Using ConnectivityManager to check for network before connecting