Towards a general theory of property rights