Use correctly sized gravatars when possible

Provides a gravatar_fixup vmethod that accepts a pixel size to set on
gravatar URLs.  It also adjusts them to use HTTPS, replacing the
existing repeated templated code.