Timeout after two seconds on gravatar lookup.

Closes #4277
- Switch from the built-in http module to request and set
  a timeout of 2 seconds on gravatar lookup requests.