Added system exit.
Output results to file.
Moved default location for output file to tmp.
Made output file readable only to owner.
Added message about cleaning up output file.
Merge pull request #1028 from ORCID/fixesForCreateNewClientSecretsScript

Added system exit, and output results to file.