Refactoring of sync and access settings

This implements #276.