Added daemonization
Switched logging to use files
Made relay configuration immutable after creation