Reduced run_daemon to a minimum and added twisted signal handler.

run_daemon has been reduced as much as possible and is now a nested
function in start_daemon.
Also added a twisted signal handler to save profiler stats when
deluged is killed with SIGINT.