set last_viewed_profile when logged in users view their own profile

used to work, then disabled when went to angular, now make it work again
will do a database write on every profile get by the logged in user
handle current_user as AnonymousUser (no url_slug)

happens when testing with curl, for example