fix(avatars): load profile image on settings and sign in pages if available

Fixes #1727

Also fixes #1722.
Closes #1544.
Closes #1613.
Does this lead to an inconsistent return point? i.e `upgradeOldSession` will either return a promise or not.