Add the capability to specify a different base url

This is useful for getting REST resources with dynamic base URL. 
For example CDN images.

For a concrete example see the UserClient.java in the sample project which fetch an user profile image from Github API.