refactor to abstract out functions for managing users/friends
return an array intend of object for the list of all users