What is this Diode for?
The answer is ... #1. It protects the LED in the optoisolator from negative voltages that could applied by the user. From the datasheet: 



The Zener diode will, of course, conduct as a diode in the forward direction if a negative voltage is applied, leaving the remainder of the input voltage across the LED until it starts to break down in reverse.