Allow skipping the md5() on the email address value in the Gravatar helper

This is useful for web services which pass the gravatar hash but not the
original email address of users.
Updated Gravatar helper to use auto-detection for pre-hashed email addresses
Revert code formatting on array in Gravatar helper
Merge branch 'hotfix/4523' into develop

Forward port #4523