initial implementaion of friends. Some previous features may not be fully supported yet.