Voters in Thailand have delivered a stinging rebuke to the nine-year rule of the military-led government. But will the opposition party that won the most votes get a chance to rule?