Use secure.gravatar.com when running over SSL
Created by: ariejan
This relates to issue #64. When you run Gitlab over SSL you get warnings because gravatars are loaded over HTTP.
This fix uses http:/www.gravatar.com
for normal requests and https://secure.gravatar.com
for secure SSL requests.
Helper tests included.