Problem: C server needs lookup table for valid events in each state
Solution: Add s_event_matrix (boolean 2D array)

(Resolves TODO task in source code comment)
Merge pull request #143 from jemc/master

Problem: C server needs lookup table for valid events in each state