Saving and checking the status of the previous event

```
@state.add_prev()
def on_event(event, prev):
    if prev["status"] == "OK" and event["status"] == "CRIT":
        pass
    # or
    if state.is_changed(prev, event, "OK", "CRIT"):
        pass
```
After #30, #32.