Refactor lighting config utils into a class
Use new lighting config class in main event loop