Gravatar chat avatars

This works but the way it's made in app.js isn't very pretty, message array manipulation & email hashing should probably be its own function. Please advise.