Add ControllerData class
Remove unused newstate
Merge get_userdata_nagios and nagios_hosts2sql to init_userdata