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.
Merge pull request #5 from ejegg/master

Add option to specify a URL for backend requests