Cooperation, Contracts and Social Networks: From a Bounded to a Procedural Rationality Approach