add support for daemonizing the agent

These changes allow the agent to be run as a daemon.

Can be run via the Red Hat System V init script system by creating a symlink to the newrelic_memcached_agent.daemon file in /etc/init.d