Generic social game infrastructure