Russia underwent two dramatic revolutions in 1917, toppling the centuries-old monarchy and paving the way for Soviet rule.