Add option to specify a URL for backend requests

Allows you to redirect users to one hostname for login while using
another hostname for backend requests such as token authorization
and profile requests.