General theory of social technologies