Livestatus: code cleanup, prepare for CMC
Core: preparation for CMC, make code more generic
WATO: prepare for CMC