Refactor daemon config

Move daemon config objects into a common module.

Add configuration file to UI.