Cleaning DaemonApplication.
Works with xml config file.
File communication in Daemon ready, not tested yet.
Some debugging changes.