In preparation for the self-refresh and snap enterprise proxy work, both of which will require talking to the snapd API. This also makes the "snaps-from-examples" fakery happen at a lower level.