Microeconomic Foundations I: Choice and Competitive Markets