Read, use and update persistent resolutions.

Add --save-resolutions to deal with this.
Also:
  - Adjust logging when using compact
  - Minor code adjustments.