Added a doc manager delegate method to warn of an impending background save, which also passes the number of changes. This is useful on iOS, because a background save just freezes the device with too many changes. Gives an opportunity to put up a dialog or spinner.