Today he is known as one of the greatest American presidents, but at the time of his election no one would have predicted Lincoln's success.