Add 'configtest' option to agent to verify config and exit

I'm using logstash with puppet and it is convenient to verify config syntax before restarting the service.  Puppet will not restart the service if configtest fails (thus leaving logstash running).

This is a small patch that adds an agent '-t' or '--configtest' boolean option to check config and then exit.  

Thanks,
-darren