Whether on the left or the right, sitting governments around the world have been drubbed this year by disgruntled voters.