Using State Streaming To Simplify Event-Driven Applications