Exit program if a connection to the daemon can't be established
Updating per feedback
Fix indentation (hopefully)
Modified to add a testing mode
Merge remote-tracking branch 'upstream/master' and update files.
Merge pull request #59 from radiosity/master

Exit when socket connection fails.