Add a method to application sync manager's delegate to be consulted about compressing the whole store file.
Consult the application and document sync manager delegates to determine if whole store compression should occur and if processing should take place in the background.
Put in #if checks for iOS-specific code (the background processing support)