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

Fixes #1727

Also fixes #1722.
Closes #1544.
Closes #1613.
I'm a bit confused about the intent of this line. Could this be a `ifSessionEmailSameAsCachedEmail` function or something like that?