Added ability to configure connection retry count

Also added an option to never stop trying for daemon processes.
Merge pull request #3 from cjsaylor/daemon-connection-retry

Added ability to configure connection retry count