A few account manager changes
Review Request #2501 — Created July 7, 2023 and submitted
- Make the account manager add a new reference to the accounts. Previously this
took the caller's reference, but some stuff was assuming it still owned it
and we were leaking the reference if the caller didn't unref it themselves.
- Disconnect our signal handlers for accounts when they are removed.
- Add propagation signals for account::connected and account::disconnected.
Ran the unit tests and connected a few accounts without issues.