Using background task to flush queued events when app enters background. (test needed)
Using a custom segment.io fork of bugsnag library to avoid problem with Reachability name conflict