Thousands of tearful citizens in Thailand were clad in black as they lined the streets and viewing areas for their king's funeral rituals.