Explain the influence of political parties in the formation of americas foreign and economic policies in the years leading up to the war of 1812. how did both federalists and democrats implement their different visions of political, economic and social policies for the newly formed republic?