Add support for reading remote avatar

I'm just making a pull request so I can keep track of where this is heading.
I think this is a smart move: Using the browser cache instead of file cache. I think it's so difficult to invalidate the file cache... The way I think now is "Let's add file cache when we see we really need it".