Minor refactoring, added MD5 calculation for Gravatar

Take it if you want it :smile: