added the gravatar endpoint and the logout action