URL prefix

This change adds a `urlPrefix` config option that allows the auth provider's base URL to be set so that, for example, https://example.com/tag could be changed to https://example.com/sp/tag. Also added are a few helper functions for constructing URLs.