Corrections for callback-related crashes
- Also moved network status handling to shared API code, no need to have it duplicated in both iOS and OS X app delegates