Fix avatar dimensions for thumbnails

Also, create proper factories to be able to extend the system using
additional account providers and not just Facebook. It will be very
useful once more account integrations are developed, with minimum
ammount of code changes.

Closes gh-30. Closes gh-28.