Split koruza-control into multiple files.
Removed empty line.
Move client-specific code into its own file.
Added missing forward declarations.
Implemented data collector and logger.