Inlining url_for_kitten and url_for_friend for better readability and adding comments for the contained functionality.