Save primary key in session instead of first and last name
Minor code refractoring
Update get_json logic for deeper friendship trees