first round of improvements
Merge pull request #1011 from ORCID/PublicClientFixes

first round of improvements