Adds automatic detection of HTTP/HTTPS protocol used and will dynacmically build the URL thus ensuring that the Gravatar URL for the avatar is compatible with the current session as this previously caused browser SSL warnings when ZPanel was being served over an SSL connection (as the browser would have complained about not all content being encrypted etc.)