Problem: current clojure server reverses the state/event model  hierarchy

Solution: match state first, then event type. This corresponds more closely with the way the model is represented in xml and should make code generation more straightforward.