Add support for reading remote avatar

I'm just making a pull request so I can keep track of where this is heading.
I don't think we need performance. I think we need a simpler code base and less things that can go wrong: Avoiding disk access is a good think imo (avoiding wrong permission on directories, out of space, ...)

Let me know if I misunderstand your comment @marcusramberg...