Democratic upheavals are transforming the U.S. and the U.K. and are likely to sweep through Continental Europe in 2017 and Mexico in 2018.