use https if a key is provided

If a user provides a key to the api, the endpoint must be https.
@ryanramage can you rename the option from `key` to `https` and document it in the readme? then i'll merge. thank you.
cc @gillesdemey