Allow a url prefix to be used for api requests 

We will need this for proxying requests to diamondash's server side when using diamondash's client side inside Go.