Use the repository pattern for persisting and retrieving connection state

Don't reference the global spotify_session instance directly, move
it behind a module