rake task to regenerate avatars

Adds the `avatars:regenerate` rake task to *re-generate* all the uploaded avatars. This is useful when changing the `allow_animated_avatars` setting (it will freeze or animate avatars depending on the value of the setting)