move everything around to bind the BeaconManager to Application subclass for background scanning and notification geenration