Specifying and Monitoring Economic Environments using Rights and Obligations