Add link to change gravatar

- When no user id is given and user is logged out, ask user to log in so
that he/she can view his/her own profile