Thailand's people revered their king as a father figure who steered the nation through times of change and turmoil.