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

Fixes #1727

Also fixes #1722.
Closes #1544.
Closes #1613.
Not sure if http://medialize.github.io/URI.js/ is overkill for something like this.