Build list_friends, request_friendship, accept_friendship functions
Merge changes, move globals