Add support for reading remote avatar

I'm just making a pull request so I can keep track of where this is heading.
Ok. I will add a test for it.