Added RequestFriend, GetWaitingFriends, AcceptFriend protocols.
Refactoring.