Support base urls with paths.

I prematurely used a url.resolve not realizing it would strip away any paths included in the base url. That would prevent having a proxy in front of your API and serving out the API under base routes like `/api` or `/v1`.