Refactor: libpe_status: Add a new node-history-list message.
This one takes a whole lot more arguments and requires moving the
get_operation_list helper function. Along the way, I also just inlined
uses of failure_count and got rid of it. I don't think this could ever
have been called in a way where rsc was NULL.