Models and APIs for social functionality