Refactor the livestatus library.
Refactor the cluster library.
Refactor the demo library.