The most tumultuous presidential campaign in living memory is almost over