Adding a base url for relative request

Currently, when you want request a link relative of resource, you lost the url entry-point.

I propose to fix it with a base-url on client, and the user can choose the path on entry point.