cleanup didEnterBackground to avoid overflow
refactor of AppDelegate methods to clear cruft