Implemented clientViaApiKey which makes HTTP requests with the API key supplied as query parameter

R=sgjesse@google.com

Review URL: https://codereview.chromium.org/577573003