Specify API URL in only one place

The base URL shouldn't be repeated.
Merge pull request #54 from sealevelresearch/factor-out-api-url

Specify API URL in only one place