What was the history of germany before 1871?