Should fix the segfault at exit
Log to file, reload config and daemon mode
Try not to break windows builds.
Handle shutdown signals
Merge pull request #33 from meeh420/master

Daemon, simple file logging, etc