Daemonize collector script

The collector script can be forked into background. Additionally the
behavior of the script can be changed with arguments.