storage: allow swapping primary storage for apps