add links to user profiles and fix bug in Rails::User#friends