What is the most important theme of US history in the period of time up until 1865?