Empty cache button

This is a surprisingly annoying feature. Everything that keeps a reference to the main `managedObjectContext` (remembering that instances of `NSManagedObject` refer to their context) needs to be able to forget that reference, then reestablish it later.

Fortunately many view controllers are familiar with this dance through UIKit state preservation and restoration.

Unfortunately, they're not that familiar.