added daemonization
initial attempt at a settings and logging framework