move gravitar functions from home controller to user model; change session user variable to avoid namespace collision on general user pages