Proper avatar MD5 hash handling.

Gravatar MD5 hashes for emails are now directly stored in the database.
This will avoid having to recalculate them every time, and also
dismisses the need for any special handling when passing data to the
frontend.