Refactor: libstonithd: Add functions for searching stonith history.
This takes the form of one function that walks the stonith history and
returns the first item that passes a matching function, as well as
several matching functions to test event state. Then, use these in
crm_mon_print.c to clean up all those repetetive loops.