What were the major political parties in the United States during the mid-19th century and how did they differ in their ideological positions and objectives?