What were some of the early important agreements between the united states and mexico, and why were they significant?