allowing GetAuthenticatedClient to take dynamic and parse query
Merge pull request #23 from phillip-haydon/CleanupQuery

- Allowing GetAuthenticatedClient to take dynamic and parse query.