add reference counting to download window

add support for secret store credentials when connecting to repositories, resolves #496

(0) -30 -10 -2 +2 +10 tip

mercurial