Added option to daemonize the server.

Signed-off-by: Raphael Catolino <raphael.catolino@gmail.com>